public static class VertexMetrics.Result extends Object implements PrintableResult
Constructor and Description |
---|
Result(long vertexCount,
long edgeCount,
long tripletCount,
long maximumDegree,
long maximumTriplets) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getAverageDegree()
Get the average degree, the average number of edges per vertex.
|
double |
getDensity()
Get the density, the ratio of actual to potential edges between vertices.
|
long |
getMaximumDegree()
Get the maximum degree.
|
long |
getMaximumTriplets()
Get the maximum triplets.
|
long |
getNumberOfEdges()
Get the number of edges.
|
long |
getNumberOfTriplets()
Get the number of triplets.
|
long |
getNumberOfVertices()
Get the number of vertices.
|
int |
hashCode() |
String |
toPrintableString()
A human-readable representation of this value.
|
String |
toString() |
public Result(long vertexCount, long edgeCount, long tripletCount, long maximumDegree, long maximumTriplets)
public long getNumberOfVertices()
public long getNumberOfEdges()
public double getAverageDegree()
A result of Float.NaN
is returned for an empty graph for
which both the number of edges and number of vertices is zero.
public double getDensity()
A result of Float.NaN
is returned for a graph with fewer than
two vertices for which the number of edges is zero.
public long getNumberOfTriplets()
public long getMaximumDegree()
public long getMaximumTriplets()
public String toPrintableString()
PrintableResult
toPrintableString
in interface PrintableResult
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.