T
- ID typepublic static class LocalClusteringCoefficient.Result<T> extends Vertex<T,org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.types.LongValue,org.apache.flink.types.LongValue>>
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.types.LongValue |
getDegree()
Get the vertex degree.
|
double |
getLocalClusteringCoefficientScore()
Get the local clustering coefficient score.
|
org.apache.flink.types.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.
|
public org.apache.flink.types.LongValue getDegree()
public org.apache.flink.types.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()
public int hashCode()
hashCode
in class org.apache.flink.api.java.tuple.Tuple2<T,org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.types.LongValue,org.apache.flink.types.LongValue>>
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.