public static class GlobalClusteringCoefficient.Result extends Object implements PrintableResult
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 |
toPrintableString()
A human-readable representation of this value.
|
String |
toString() |
public Result(long tripletCount, long triangleCount)
tripletCount
- triplet counttriangleCount
- triangle countpublic long getNumberOfTriplets()
public long getNumberOfTriangles()
public double getGlobalClusteringCoefficientScore()
A score of Double.NaN
is returned for a graph of isolated vertices
for which both the triangle count and number of neighbors are zero.
public String toPrintableString()
PrintableResult
toPrintableString
in interface PrintableResult
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.