Class PregelContext<CONFIG extends PregelConfig>
- java.lang.Object
-
- org.neo4j.graphalgo.beta.pregel.context.PregelContext<CONFIG>
-
- Direct Known Subclasses:
MasterComputeContext
,NodeCentricContext
public abstract class PregelContext<CONFIG extends PregelConfig> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PregelContext(CONFIG config)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CONFIG
config()
Allows access to the user-defined Pregel configuration.abstract boolean
isMultiGraph()
Indicates whether the input graph is a multi-graph.abstract long
nodeCount()
Number of nodes in the input graph.abstract long
relationshipCount()
Number of relationships in the input graph.
-
-
-
Field Detail
-
config
protected final CONFIG extends PregelConfig config
-
-
Constructor Detail
-
PregelContext
protected PregelContext(CONFIG config)
-
-
Method Detail
-
config
public CONFIG config()
Allows access to the user-defined Pregel configuration.
-
isMultiGraph
public abstract boolean isMultiGraph()
Indicates whether the input graph is a multi-graph.
-
nodeCount
public abstract long nodeCount()
Number of nodes in the input graph.
-
relationshipCount
public abstract long relationshipCount()
Number of relationships in the input graph.
-
-