Package org.neo4j.graphalgo.beta.pregel
Class PregelContext.InitContext<CONFIG extends PregelConfig>
- java.lang.Object
-
- org.neo4j.graphalgo.beta.pregel.PregelContext<CONFIG>
-
- org.neo4j.graphalgo.beta.pregel.PregelContext.InitContext<CONFIG>
-
- Enclosing class:
- PregelContext<CONFIG extends PregelConfig>
public static final class PregelContext.InitContext<CONFIG extends PregelConfig> extends PregelContext<CONFIG>
A context that is used during the initialization phase, which is before the first superstep is being executed. The init context allows accessing node properties from the input graph which can be used to set initial node values for the Pregel computation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neo4j.graphalgo.beta.pregel.PregelContext
PregelContext.ComputeContext<CONFIG extends PregelConfig>, PregelContext.InitContext<CONFIG extends PregelConfig>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeProperties
nodeProperties(java.lang.String key)
Returns the property values for the given property key.java.util.Set<java.lang.String>
nodePropertyKeys()
Returns the node property keys stored in the input graph.-
Methods inherited from class org.neo4j.graphalgo.beta.pregel.PregelContext
config, degree, nodeCount, nodeId, relationshipCount, setNodeValue, setNodeValue, setNodeValue, setNodeValue
-
-
-
-
Method Detail
-
nodePropertyKeys
public java.util.Set<java.lang.String> nodePropertyKeys()
Returns the node property keys stored in the input graph. These properties can be the result of previous computations or part of node projections when creating the graph.
-
nodeProperties
public NodeProperties nodeProperties(java.lang.String key)
Returns the property values for the given property key. Property values can be used to access individual node property values by using their node identifier.
-
-