T
- ID typepublic static class LocalClusteringCoefficient.Result<T> extends Vertex<T,Tuple2<LongValue,LongValue>>
Modifier and Type | Field and Description |
---|---|
static int |
HASH_SEED |
Constructor and Description |
---|
Result()
No-args constructor.
|
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() |
String |
toVerboseString()
Format values into a human-readable string.
|
copy, equals, getArity, getField, of, setField, setFields, swap, toString
getFieldNotNull, getTupleClass
public static final int HASH_SEED
public 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 toVerboseString()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.