uk.ed.inf.graph.state
Interface IGraphState<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>

All Known Implementing Classes:
GeneralGraphState

public interface IGraphState<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>


Method Summary
 IBitString getEdgeStates()
          Get the states of the edges as a bit string: [true => exists, false => removed].
 IBasicGraph<N,E> getGraph()
          Get the graph that this momento belong to.
 IBitString getNodeStates()
          Get the states of the nodes as a bit string: [true => exists, false => removed].
 

Method Detail

getGraph

IBasicGraph<N,E> getGraph()
Get the graph that this momento belong to.

Returns:
The graph, cannot be null.

getNodeStates

IBitString getNodeStates()
Get the states of the nodes as a bit string: [true => exists, false => removed]. Not that the bit string may be shorter than the number of nodes in the graph as the graph may have expanded since it was created.

Returns:
The bit string representing the state of the nodes in graph.

getEdgeStates

IBitString getEdgeStates()
Get the states of the edges as a bit string: [true => exists, false => removed]. Not that the bit string may be shorter than the number of edges in the graph as the graph may have expanded since it was created.

Returns:
The bit string representing the state of the edges in the graph.