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, nextElement
compare, copy, empty, getTOS, isEmpty, iterator, peek, pop, push, shallowCopy, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public 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 DFSenumerateByFinish
n
- A node in the DFS