public class ConnectivityDFS<V,E> extends DFS<V,E,java.lang.Object,java.lang.Boolean>
| Modifier and Type | Field and Description |
|---|---|
protected int |
reached |
| Constructor and Description |
|---|
ConnectivityDFS() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Boolean |
finalResult(java.lang.Boolean dfsResult)
Returns the final result of the DFS execute method.
|
protected void |
setup()
Executes the DFS algorithm.
|
protected void |
startVisit(Vertex<V> v)
Called when we encounter a vertex (v).
|
dfsTraversal, execute, finishVisit, initResult, isDone, isVisited, result, traverseBack, traverseDiscovery, unVisit, visitprotected void setup()
protected void startVisit(Vertex<V> v)
DFSstartVisit in class DFS<V,E,java.lang.Object,java.lang.Boolean>protected java.lang.Boolean finalResult(java.lang.Boolean dfsResult)
DFSfinalResult in class DFS<V,E,java.lang.Object,java.lang.Boolean>