Package org.jboss.util.graph
Interface DFSVisitor<T>
-
- Type Parameters:
T
-
public interface DFSVisitor<T>
A spanning tree visitor callback interface- Version:
- $Revision$
- See Also:
Graph.dfsSpanningTree(Vertex, DFSVisitor)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-