Graph.Visitor<U> Interface
Type Parameters
- U
the type of the node
protected static interface Graph.Visitor
Represents a visitor to be implemented by the consumer who want to visit the graph's nodes in DFS order by calling visit method.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract void |
visitEdge(String fromKey, String toKey, Graph.EdgeType edgeType)
visit an edge. |
| abstract void |
visitNode(U node)
visit a node. |
Method Details
visitEdge
public abstract void visitEdge(String fromKey, String toKey, Graph.EdgeType edgeType)
visit an edge.
Parameters:
visitNode
public abstract void visitNode(U node)
visit a node.
Parameters: