K
- graph ID typeVV
- vertex value typeEV
- edge value typepublic class TriadicCensus<K extends Comparable<K> & CopyableValue<K>,VV,EV> extends GraphAnalyticBase<K,VV,EV,TriadicCensus.Result>
The four types of undirected triads are formed with 0, 1, 2, or 3 connecting edges.
See http://vlado.fmf.uni-lj.si/pub/networks/doc/triads/triads.pdf
Modifier and Type | Class and Description |
---|---|
static class |
TriadicCensus.Result
Wraps triadic census metrics.
|
env, parallelism
Constructor and Description |
---|
TriadicCensus() |
Modifier and Type | Method and Description |
---|---|
TriadicCensus.Result |
getResult()
This method must be called after the program has executed.
|
TriadicCensus<K,VV,EV> |
run(Graph<K,VV,EV> input)
All
GraphAnalytic processing must be terminated by an OutputFormat . |
execute, execute, setParallelism
public TriadicCensus<K,VV,EV> run(Graph<K,VV,EV> input) throws Exception
GraphAnalytic
GraphAnalytic
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> & CopyableValue<K>,VV,EV,TriadicCensus.Result>
run
in class GraphAnalyticBase<K extends Comparable<K> & CopyableValue<K>,VV,EV,TriadicCensus.Result>
input
- input graphException
public TriadicCensus.Result getResult()
GraphAnalytic
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.