K- graph ID type
VV- vertex value type
EV- edge value type
public class EdgeMetrics<K extends Comparable<K>,VV,EV> extends GraphAnalyticBase<K,VV,EV,EdgeMetrics.Result>
|Modifier and Type||Class and Description|
Wraps edge metrics.
|Constructor and Description|
|Modifier and Type||Method and Description|
This method must be called after the program has executed.
The degree can be counted from either the edge source or target IDs.
execute, execute, setParallelism
public EdgeMetrics<K,VV,EV> setReduceOnTargetId(boolean reduceOnTargetId)
reduceOnTargetId- set to
trueif the input edge list is sorted by target ID
public EdgeMetrics<K,VV,EV> run(Graph<K,VV,EV> input) throws Exception
GraphAnalyticprocessing must be terminated by an
OutputFormat. Rather than obtained via accumulators rather than returned by a
GraphAnalytic<K extends Comparable<K>,VV,EV,EdgeMetrics.Result>
GraphAnalyticBase<K extends Comparable<K>,VV,EV,EdgeMetrics.Result>
input- input graph
public EdgeMetrics.Result getResult()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.