T
- ID typepublic static class LocalClusteringCoefficient.Result<T> extends UnaryResultBase<T> implements PrintableResult
Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
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.
|
int |
hashCode() |
void |
setDegree(LongValue degree)
Set the vertex degree.
|
void |
setTriangleCount(LongValue triangleCount)
Set the number of triangles containing this vertex; equivalently, this is the number of
edges between neighbors of this vertex.
|
String |
toPrintableString()
Format values into a human-readable string.
|
String |
toString()
Object.toString() must be overridden to write POJO values in the same form as Tuple . |
getVertexId0, setVertexId0, translate
public static final int HASH_SEED
public LongValue getDegree()
public void setDegree(LongValue degree)
degree
- vertex degreepublic LongValue getTriangleCount()
public void setTriangleCount(LongValue triangleCount)
triangleCount
- triangle countpublic double getLocalClusteringCoefficientScore()
A score of Double.NaN
is returned for a vertex with degree 1 for which both
the triangle count and number of neighbors are zero.
public String toString()
ResultBase
Object.toString()
must be overridden to write POJO values in the same form as Tuple
. Values are comma-separated and enclosed in
parenthesis, e.g. "(f0,f1)".toString
in class ResultBase
public String toPrintableString()
toPrintableString
in interface PrintableResult
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.