T
- public interface DFSVisitor<T>
Graph.dfsSpanningTree(Vertex, DFSVisitor)
Modifier and Type | Method and Description |
---|---|
void |
visit(Graph<T> g,
Vertex<T> v)
Called by the graph traversal methods when a vertex is first visited.
|
void |
visit(Graph<T> g,
Vertex<T> v,
Edge<T> e)
Used dfsSpanningTree to notify the visitor of each outgoing edge to
an unvisited vertex.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.