soot.toolkits.graph
Interface ReversibleGraph

All Superinterfaces:
DirectedGraph, Iterable, MutableDirectedGraph
All Known Implementing Classes:
HashReversibleGraph

public interface ReversibleGraph
extends MutableDirectedGraph

DirectedGraph which can be reversed and re-reversed.

Author:
Navindra Umanee

Method Summary
 boolean isReversed()
          Returns true if the graph is now reversed from its original state at creation.
 ReversibleGraph reverse()
          Reverse the edges of the current graph and swap head and tail nodes.
 
Methods inherited from interface soot.toolkits.graph.MutableDirectedGraph
addEdge, addNode, containsEdge, containsNode, getNodes, removeEdge, removeNode
 
Methods inherited from interface soot.toolkits.graph.DirectedGraph
getHeads, getPredsOf, getSuccsOf, getTails, iterator, size
 

Method Detail

isReversed

boolean isReversed()
Returns true if the graph is now reversed from its original state at creation.


reverse

ReversibleGraph reverse()
Reverse the edges of the current graph and swap head and tail nodes. Returns self.