public class DepthFirstDirectedGraphTraversal extends DepthFirstGraphTraversal
OK, TERMINATEDBYVISITOR| Constructor and Description |
|---|
DepthFirstDirectedGraphTraversal(DirectedGraph graph)
Creates a DepthFirstDirectedGraphTraversal object that will perform
a depth first traversal on the specified DirectedGraph
|
| Modifier and Type | Method and Description |
|---|---|
protected List |
getAdjacentVertices(Vertex v)
Override super to only get the outgoing adjacent vertices.
|
traverse, traverse, traversepublic DepthFirstDirectedGraphTraversal(DirectedGraph graph)
graph - DirectedGraph on which the traversal will be performed.protected List getAdjacentVertices(Vertex v)
getAdjacentVertices in class DepthFirstGraphTraversalCopyright © 2019 JULIE Lab, Germany. All rights reserved.