public static class VertexMetrics.Result extends Object implements PrintableResult
Constructor and Description |
---|
Result(long vertexCount,
long unidirectionalEdgeCount,
long bidirectionalEdgeCount,
long tripletCount,
long maximumDegree,
long maximumOutDegree,
long maximumInDegree,
long maximumTriplets) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getAverageDegree()
Get the average degree, the average number of in- plus out-edges per vertex.
|
double |
getDensity()
Get the density, the ratio of actual to potential edges between vertices.
|
long |
getMaximumDegree()
Get the maximum degree.
|
long |
getMaximumInDegree()
Get the maximum in degree.
|
long |
getMaximumOutDegree()
Get the maximum out degree.
|
long |
getMaximumTriplets()
Get the maximum triplets.
|
long |
getNumberOfDirectedEdges()
Get the number of unidirectional edges.
|
long |
getNumberOfEdges()
Get the number of edges.
|
long |
getNumberOfTriplets()
Get the number of triplets.
|
long |
getNumberOfUndirectedEdges()
Get the number of bidirectional edges.
|
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 unidirectionalEdgeCount, long bidirectionalEdgeCount, long tripletCount, long maximumDegree, long maximumOutDegree, long maximumInDegree, long maximumTriplets)
public long getNumberOfVertices()
public long getNumberOfEdges()
public long getNumberOfDirectedEdges()
public long getNumberOfUndirectedEdges()
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 getMaximumOutDegree()
public long getMaximumInDegree()
public long getMaximumTriplets()
public String toPrintableString()
PrintableResult
toPrintableString
in interface PrintableResult
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.