public class ComponentsDFS<V,E> extends DFS<V,E,java.lang.Object,java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Integer |
compNumber |
protected java.lang.Object |
COMPONENT |
| Constructor and Description |
|---|
ComponentsDFS() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Integer |
finalResult(java.lang.Integer dfsResult)
Returns the final result of the DFS execute method.
|
protected void |
setup()
Setup method that is called prior to the DFS execution.
|
protected void |
startVisit(Vertex<V> v)
Called when we encounter a vertex (v).
|
dfsTraversal, execute, finishVisit, initResult, isDone, isVisited, result, traverseBack, traverseDiscovery, unVisit, visitprotected java.lang.Integer compNumber
protected java.lang.Object COMPONENT
protected void setup()
DFSprotected void startVisit(Vertex<V> v)
DFSstartVisit in class DFS<V,E,java.lang.Object,java.lang.Integer>protected java.lang.Integer finalResult(java.lang.Integer dfsResult)
DFSfinalResult in class DFS<V,E,java.lang.Object,java.lang.Integer>