public class LocalClusteringCoefficient extends Object implements ComputeFunction<Long,Double,Double,LocalClusteringCoefficient.LCCMessage>
Modifier and Type | Class and Description |
---|---|
static class |
LocalClusteringCoefficient.LCCMessage |
ComputeFunction.Aggregators, ComputeFunction.Callback<K,VV,EV,Message>, ComputeFunction.InitCallback, ComputeFunction.MasterCallback, ComputeFunction.ReadAggregators, ComputeFunction.ReadWriteAggregators
Constructor and Description |
---|
LocalClusteringCoefficient() |
Modifier and Type | Method and Description |
---|---|
void |
compute(int superstep,
VertexWithValue<Long,Double> vertex,
Iterable<LocalClusteringCoefficient.LCCMessage> messages,
Iterable<EdgeWithValue<Long,Double>> edges,
ComputeFunction.Callback<Long,Double,Double,LocalClusteringCoefficient.LCCMessage> cb)
The function for computing a new vertex value or sending messages to the next superstep.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, masterCompute, postSuperstep, preSuperstep
public void compute(int superstep, VertexWithValue<Long,Double> vertex, Iterable<LocalClusteringCoefficient.LCCMessage> messages, Iterable<EdgeWithValue<Long,Double>> edges, ComputeFunction.Callback<Long,Double,Double,LocalClusteringCoefficient.LCCMessage> cb)
ComputeFunction
compute
in interface ComputeFunction<Long,Double,Double,LocalClusteringCoefficient.LCCMessage>
superstep
- the count of the current superstepvertex
- the current vertex with its valuemessages
- a Map of the source vertex and the message sent from the previous superstepedges
- the adjacent edges with their valuescb
- a callback for setting a new vertex value or sending messages to the next superstepCopyright © 2020. All rights reserved.