public class FindPathDFS<V,E> extends DFS<V,E,Vertex<V>,java.lang.Iterable<Position>>
Modifier and Type | Field and Description |
---|---|
protected boolean |
done |
protected PositionList<Position> |
path |
Constructor and Description |
---|
FindPathDFS() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<Position> |
finalResult(java.lang.Iterable<Position> r)
Returns the final result of the DFS execute method.
|
protected void |
finishVisit(Vertex<V> v)
Called after we finish the visit for a vertex (v).
|
protected boolean |
isDone()
Determines whether the traversal is done early.
|
void |
setup()
Setup method to initialize the path.
|
protected void |
startVisit(Vertex<V> v)
Called when we encounter a vertex (v).
|
protected void |
traverseDiscovery(Edge<E> e,
Vertex<V> from)
Called when we traverse a discovery edge (e) from a vertex (from).
|
dfsTraversal, execute, initResult, isVisited, result, traverseBack, unVisit, visit
protected PositionList<Position> path
protected boolean done
public void setup()
protected void startVisit(Vertex<V> v)
DFS
protected void finishVisit(Vertex<V> v)
DFS
protected void traverseDiscovery(Edge<E> e, Vertex<V> from)
DFS
protected boolean isDone()
DFS