Interface Graph.Visitor<U>
- Type Parameters:
U- the type of the node
protected static interface Graph.Visitor<U>
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
-
Method Details
-
visitNode
visit a node.- Parameters:
node- the node to visited
-
visitEdge
visit an edge.- Parameters:
fromKey- key of the from nodetoKey- key of the to nodeedgeType- the edge type
-