Class DegreeCentrality
- java.lang.Object
-
- org.apache.hugegraph.computer.algorithm.centrality.degree.DegreeCentrality
-
- All Implemented Interfaces:
org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
public class DegreeCentrality extends java.lang.Object implements org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOPTION_WEIGHT_PROPERTY
-
Constructor Summary
Constructors Constructor Description DegreeCentrality()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterSuperstep(org.apache.hugegraph.computer.core.worker.WorkerContext context)voidbeforeSuperstep(org.apache.hugegraph.computer.core.worker.WorkerContext context)java.lang.Stringcategory()voidclose(org.apache.hugegraph.computer.core.config.Config config)voidcompute(org.apache.hugegraph.computer.core.worker.ComputationContext context, org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex, java.util.Iterator<org.apache.hugegraph.computer.core.graph.value.NullValue> messages)voidcompute0(org.apache.hugegraph.computer.core.worker.ComputationContext context, org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)voidinit(org.apache.hugegraph.computer.core.config.Config config)java.lang.Stringname()
-
-
-
Field Detail
-
OPTION_WEIGHT_PROPERTY
public static final java.lang.String OPTION_WEIGHT_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
namein interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
category
public java.lang.String category()
- Specified by:
categoryin interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
compute0
public void compute0(org.apache.hugegraph.computer.core.worker.ComputationContext context, org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex)- Specified by:
compute0in interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
compute
public void compute(org.apache.hugegraph.computer.core.worker.ComputationContext context, org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex, java.util.Iterator<org.apache.hugegraph.computer.core.graph.value.NullValue> messages)- Specified by:
computein interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
init
public void init(org.apache.hugegraph.computer.core.config.Config config)
- Specified by:
initin interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
close
public void close(org.apache.hugegraph.computer.core.config.Config config)
- Specified by:
closein interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
beforeSuperstep
public void beforeSuperstep(org.apache.hugegraph.computer.core.worker.WorkerContext context)
- Specified by:
beforeSuperstepin interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
afterSuperstep
public void afterSuperstep(org.apache.hugegraph.computer.core.worker.WorkerContext context)
- Specified by:
afterSuperstepin interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.value.NullValue>
-
-