Package smile.graph
Interface Visitor
public interface Visitor
A visitor is encapsulation of some operation on graph vertices during
traveling graph (DFS or BFS).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(int vertex) Performs some operations on the currently-visiting vertex during DFS or BFS.
-
Method Details
-
visit
void visit(int vertex) Performs some operations on the currently-visiting vertex during DFS or BFS.- Parameters:
vertex
- the index of vertex.
-