public class ReverseDFSenumerateByFinish extends DFSenumerateByFinish
currentRoot| Constructor and Description |
|---|
ReverseDFSenumerateByFinish(Graph net)
Construct a reverse DFS across a graph.
|
ReverseDFSenumerateByFinish(Graph net,
Enumeration<GraphNode> nodes)
Construct a reverse DFS across a subset of a graph, starting
at the given set of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
protected Enumeration<GraphNode> |
getConnected(GraphNode n)
Traverse edges from target to source.
|
hasMoreElements, nextElementcompare, copy, empty, getTOS, isEmpty, iterator, peek, pop, push, shallowCopy, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ReverseDFSenumerateByFinish(Graph net)
net - The graph over which to search.public ReverseDFSenumerateByFinish(Graph net, Enumeration<GraphNode> nodes)
net - The graph over which to searchnodes - The nodes at which to start the searchprotected Enumeration<GraphNode> getConnected(GraphNode n)
getConnected in class DFSenumerateByFinishn - A node in the DFS