K - graph ID typeVV - vertex value typeEV - edge value typepublic class VertexMetrics<K extends Comparable<K>,VV,EV> extends GraphAnalyticBase<K,VV,EV,VertexMetrics.Result>
| Modifier and Type | Class and Description |
|---|---|
static class |
VertexMetrics.Result
Wraps vertex metrics.
|
env, parallelism| Constructor and Description |
|---|
VertexMetrics() |
| Modifier and Type | Method and Description |
|---|---|
VertexMetrics.Result |
getResult()
This method must be called after the program has executed.
|
VertexMetrics<K,VV,EV> |
run(Graph<K,VV,EV> input)
All
GraphAnalytic processing must be terminated by an
OutputFormat. |
VertexMetrics<K,VV,EV> |
setIncludeZeroDegreeVertices(boolean includeZeroDegreeVertices)
By default only the edge set is processed for the computation of degree.
|
execute, execute, setParallelismpublic VertexMetrics<K,VV,EV> setIncludeZeroDegreeVertices(boolean includeZeroDegreeVertices)
includeZeroDegreeVertices - whether to output vertices with a
degree of zeropublic VertexMetrics<K,VV,EV> run(Graph<K,VV,EV> input) throws Exception
GraphAnalyticGraphAnalytic processing must be terminated by an
OutputFormat. Rather than obtained via accumulators rather than
returned by a DataSet.run in interface GraphAnalytic<K extends Comparable<K>,VV,EV,VertexMetrics.Result>run in class GraphAnalyticBase<K extends Comparable<K>,VV,EV,VertexMetrics.Result>input - input graphExceptionpublic VertexMetrics.Result getResult()
GraphAnalyticCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.