Class RandomWalk
- java.lang.Object
-
- org.apache.hugegraph.computer.algorithm.sampling.RandomWalk
-
- All Implemented Interfaces:
org.apache.hugegraph.computer.core.worker.Computation<RandomWalkMessage>
public class RandomWalk extends java.lang.Object implements org.apache.hugegraph.computer.core.worker.Computation<RandomWalkMessage>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOPTION_DEFAULT_WEIGHTstatic java.lang.StringOPTION_INOUT_FACTORstatic java.lang.StringOPTION_MAX_WEIGHT_THRESHOLDstatic java.lang.StringOPTION_MIN_WEIGHT_THRESHOLDstatic java.lang.StringOPTION_RETURN_FACTORstatic java.lang.StringOPTION_WALK_LENGTHstatic java.lang.StringOPTION_WALK_PER_NODEstatic java.lang.StringOPTION_WEIGHT_PROPERTY
-
Constructor Summary
Constructors Constructor Description RandomWalk()
-
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<RandomWalkMessage> 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_WALK_PER_NODE
public static final java.lang.String OPTION_WALK_PER_NODE
- See Also:
- Constant Field Values
-
OPTION_WALK_LENGTH
public static final java.lang.String OPTION_WALK_LENGTH
- See Also:
- Constant Field Values
-
OPTION_WEIGHT_PROPERTY
public static final java.lang.String OPTION_WEIGHT_PROPERTY
- See Also:
- Constant Field Values
-
OPTION_DEFAULT_WEIGHT
public static final java.lang.String OPTION_DEFAULT_WEIGHT
- See Also:
- Constant Field Values
-
OPTION_MIN_WEIGHT_THRESHOLD
public static final java.lang.String OPTION_MIN_WEIGHT_THRESHOLD
- See Also:
- Constant Field Values
-
OPTION_MAX_WEIGHT_THRESHOLD
public static final java.lang.String OPTION_MAX_WEIGHT_THRESHOLD
- See Also:
- Constant Field Values
-
OPTION_RETURN_FACTOR
public static final java.lang.String OPTION_RETURN_FACTOR
- See Also:
- Constant Field Values
-
OPTION_INOUT_FACTOR
public static final java.lang.String OPTION_INOUT_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
category
public java.lang.String category()
- Specified by:
categoryin interfaceorg.apache.hugegraph.computer.core.worker.Computation<RandomWalkMessage>
-
name
public java.lang.String name()
- Specified by:
namein interfaceorg.apache.hugegraph.computer.core.worker.Computation<RandomWalkMessage>
-
init
public void init(org.apache.hugegraph.computer.core.config.Config config)
- Specified by:
initin interfaceorg.apache.hugegraph.computer.core.worker.Computation<RandomWalkMessage>
-
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<RandomWalkMessage>
-
compute
public void compute(org.apache.hugegraph.computer.core.worker.ComputationContext context, org.apache.hugegraph.computer.core.graph.vertex.Vertex vertex, java.util.Iterator<RandomWalkMessage> messages)- Specified by:
computein interfaceorg.apache.hugegraph.computer.core.worker.Computation<RandomWalkMessage>
-
-