org.apache.giraph.graph
Interface VertexChanges<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable>

Type Parameters:
I - Vertex index value
V - Vertex value
E - Edge value
M - Message value
All Known Implementing Classes:
VertexMutations

public interface VertexChanges<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable>

Structure to hold all the possible graph mutations that can occur during a superstep.


Method Summary
 List<Edge<I,E>> getAddedEdgeList()
          Get the added edges for this particular vertex index from the previous superstep
 List<Vertex<I,V,E,M>> getAddedVertexList()
          Get the added vertices for this particular vertex index from the previous superstep.
 List<I> getRemovedEdgeList()
          Get the removed edges by their destination vertex index.
 int getRemovedVertexCount()
          Get the number of times this vertex was removed in the previous superstep.
 

Method Detail

getAddedVertexList

List<Vertex<I,V,E,M>> getAddedVertexList()
Get the added vertices for this particular vertex index from the previous superstep.

Returns:
List of vertices for this vertex index.

getRemovedVertexCount

int getRemovedVertexCount()
Get the number of times this vertex was removed in the previous superstep.

Returns:
Count of time this vertex was removed in the previous superstep

getAddedEdgeList

List<Edge<I,E>> getAddedEdgeList()
Get the added edges for this particular vertex index from the previous superstep

Returns:
List of added edges for this vertex index

getRemovedEdgeList

List<I> getRemovedEdgeList()
Get the removed edges by their destination vertex index.

Returns:
List of destination edges for removal from this vertex index


Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.