soot.toolkits.graph
Interface ReversibleGraph
- All Superinterfaces:
- DirectedGraph, 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. |
isReversed
public boolean isReversed()
- Returns true if the graph is now reversed from its original state
at creation.
reverse
public ReversibleGraph reverse()
- Reverse the edges of the current graph and swap head and tail
nodes. Returns self.