| 程序包 | 说明 |
|---|---|
| com.jn.langx.util.collection.graph |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Visitor.visit(Graph<T> g,
Vertex<T> v)
Called by the graph traversal methods when a vertex is first visited.
|
void |
DFSVisitor.visit(Graph<T> g,
Vertex<T> v)
Called by the graph traversal methods when a vertex is first visited.
|
void |
DFSVisitor.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 © 2021. All rights reserved.