public static class GlobalClusteringCoefficient.Result extends Object
Constructor and Description |
---|
Result(long tripletCount,
long triangleCount)
Instantiate an immutable result.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getGlobalClusteringCoefficientScore()
Get the global clustering coefficient score.
|
long |
getNumberOfTriangles()
Get the number of triangles.
|
long |
getNumberOfTriplets()
Get the number of triplets.
|
int |
hashCode() |
String |
toString() |
public Result(long tripletCount, long triangleCount)
tripletCount
- triplet counttriangleCount
- triangle countpublic long getNumberOfTriplets()
public long getNumberOfTriangles()
public double getGlobalClusteringCoefficientScore()
Double.NaN
is returned for a graph of isolated vertices
for which both the triangle count and number of neighbors are zero.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.