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, visit
protected java.lang.Integer compNumber
protected java.lang.Object COMPONENT
protected void setup()
DFS
protected void startVisit(Vertex<V> v)
DFS
startVisit
in class DFS<V,E,java.lang.Object,java.lang.Integer>
protected java.lang.Integer finalResult(java.lang.Integer dfsResult)
DFS
finalResult
in class DFS<V,E,java.lang.Object,java.lang.Integer>