T
- Generic objectpublic static interface Grafo.DFSVisitor<T>
Modifier and Type | Method and Description |
---|---|
void |
visit(Grafo.Dirigido<T> g,
Grafo.Vertex<T> v)
Called by the graph traversal methods when a vertex is first visited.
|
void |
visit(Grafo.Dirigido<T> g,
Grafo.Vertex<T> v,
Grafo.Edge<T> e)
Used dfsSpanningTree to notify the visitor of each outgoing edge to an
unvisited vertex.
|
void visit(Grafo.Dirigido<T> g, Grafo.Vertex<T> v)
g
- -
the graphv
- -
the vertex being visited.void visit(Grafo.Dirigido<T> g, Grafo.Vertex<T> v, Grafo.Edge<T> e)
g
- -
the graphv
- -
the vertex being visitede
- -
the outgoing edge from v