org.apache.giraph.graph
Class GraphState
java.lang.Object
org.apache.giraph.graph.GraphState
public class GraphState
- extends Object
Immutable global state of the graph.
|
Constructor Summary |
GraphState(long superstep,
long numVertices,
long numEdges,
org.apache.hadoop.mapreduce.Mapper.Context context)
Constructor |
GraphState
public GraphState(long superstep,
long numVertices,
long numEdges,
org.apache.hadoop.mapreduce.Mapper.Context context)
- Constructor
- Parameters:
superstep - Current superstepnumVertices - Current graph-wide verticesnumEdges - Current graph-wide edgescontext - Context
getSuperstep
public long getSuperstep()
getTotalNumVertices
public long getTotalNumVertices()
getTotalNumEdges
public long getTotalNumEdges()
getContext
public org.apache.hadoop.mapreduce.Mapper.Context getContext()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.