uk.ed.inf.graph.state
Interface IRestorableGraph<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
- All Known Implementing Classes:
- ArchetypalCompoundGraph, BaseCompoundGraph, CompoundGraph, Graph
public interface IRestorableGraph<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
getCurrentState
IGraphState<N,E> getCurrentState()
- Get the current state of the graph as a momento.
- Returns:
- the current graph state, will not be null.
restoreState
void restoreState(IGraphState<N,E> previousState)
- Restores the graph state to the state stored by the
previousState
object.
- Parameters:
previousState
- The previous state to be restored.