Interface AbstractGraph.IGraphVisitor<V,E>
- Type Parameters:
V- The type of the graph's verticesE- The type of the graph's edges
- All Known Implementing Classes:
AbstractDependencyGraphFormatterVisitor,AbstractDependencyGraphFormatterVisitor,DescriptionDecoratorFilter,DescriptionDecoratorFilter,TraceColoringFilter,TraceColoringFilter
- Enclosing class:
- AbstractGraph<V extends AbstractVertex<V,E,O>,E extends AbstractEdge<V,E,O>,O>
public static interface AbstractGraph.IGraphVisitor<V,E>
Interface for abstract-graph visitors. These visitors can be used in conjunction with the
graph's traversal methods.
- Since:
- 1.6
-
Method Summary
Modifier and Type Method Description voidvisitEdge(E edge)Call-back operation that is invoked when an edge is encountered during graph traversal.voidvisitVertex(V vertex)Call-back operation that is invoked when a vertex is encountered during graph traversal.
-
Method Details
-
visitVertex
Call-back operation that is invoked when a vertex is encountered during graph traversal.- Parameters:
vertex- The encountered vertex- Since:
- 1.6
-
visitEdge
Call-back operation that is invoked when an edge is encountered during graph traversal.- Parameters:
edge- The encountered edge- Since:
- 1.6
-