Class DFSFinishTimeIterator<T>
java.lang.Object
com.ibm.wala.util.graph.traverse.DFSFinishTimeIterator<T>
- All Implemented Interfaces:
Serializable, Iterator<T>
- Direct Known Subclasses:
NumberedDFSFinishTimeIterator, SlowDFSFinishTimeIterator
This class implements depth-first search over a
Graph, return an enumeration of the nodes
of the graph in order of increasing finishing time. This class follows the outNodes of the graph
nodes to define the graph, but this behavior can be changed by overriding the getConnected
method.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnected(T n) get the out edges of a given nodebooleanhasNext()Return whether there are any more nodes left to enumerate.protected voidSubclasses must call this in the constructor!next()Find the next graph node in finishing time order.voidremove()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
DFSFinishTimeIterator
public DFSFinishTimeIterator()
-
-
Method Details
-
init
-
hasNext
-
next
Find the next graph node in finishing time order.- Specified by:
nextin interfaceIterator<T>- Returns:
- the next graph node in finishing time order.
- Throws:
NoSuchElementException
-
getConnected
-
remove
- Specified by:
removein interfaceIterator<T>- Throws:
UnimplementedError
-