Class Kcore
- java.lang.Object
-
- org.apache.hugegraph.computer.algorithm.community.kcore.Kcore
-
- All Implemented Interfaces:
org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.id.Id>
public class Kcore extends java.lang.Object implements org.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.id.Id>
-
-
Field Summary
Fields Modifier and Type Field Description static intK_DEFAULT_VALUEstatic java.lang.StringOPTION_K
-
Constructor Summary
Constructors Constructor Description Kcore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcategory()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.id.Id> 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_K
public static final java.lang.String OPTION_K
- See Also:
- Constant Field Values
-
K_DEFAULT_VALUE
public static final int K_DEFAULT_VALUE
- 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.id.Id>
-
category
public java.lang.String category()
- Specified by:
categoryin interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.id.Id>
-
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.id.Id>
-
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.id.Id>
-
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.id.Id> messages)- Specified by:
computein interfaceorg.apache.hugegraph.computer.core.worker.Computation<org.apache.hugegraph.computer.core.graph.id.Id>
-
-