T
- ID typepublic static class LocalClusteringCoefficient.Result<T> extends Tuple3<T,LongValue,LongValue> implements PrintableResult, UnaryResult<T>
Tuple3
to encapsulate results from the Local Clustering Coefficient algorithm.Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
LongValue |
getDegree()
Get the vertex degree.
|
double |
getLocalClusteringCoefficientScore()
Get the local clustering coefficient score.
|
LongValue |
getTriangleCount()
Get the number of triangles containing this vertex; equivalently,
this is the number of edges between neighbors of this vertex.
|
T |
getVertexId0()
Get the first vertex ID.
|
int |
hashCode() |
void |
setVertexId0(T value)
Set the first vertex ID.
|
String |
toPrintableString()
Format values into a human-readable string.
|
copy, equals, getArity, getField, of, setField, setFields, toString
getFieldNotNull, getTupleClass
public T getVertexId0()
UnaryResult
getVertexId0
in interface UnaryResult<T>
public void setVertexId0(T value)
UnaryResult
setVertexId0
in interface UnaryResult<T>
value
- new vertex IDpublic LongValue getDegree()
public LongValue getTriangleCount()
public double getLocalClusteringCoefficientScore()
Double.NaN
is returned for a vertex with degree 1
for which both the triangle count and number of neighbors are zero.public String toPrintableString()
toPrintableString
in interface PrintableResult
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.