java.lang.Object
org.jgrapht.event.TraversalListenerAdapter<V,E>
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
TraversalListener<V,
E>
An empty do-nothing implementation of the
TraversalListener
interface used for
subclasses.- Author:
- Barak Naveh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called to inform listeners that the traversal of the current connected component has finished.void
Called to inform listeners that a traversal of a new connected component has started.void
Called to inform the listener that the specified edge have been visited during the graph traversal.void
Called to inform the listener that the specified vertex have been finished during the graph traversal.void
Called to inform the listener that the specified vertex have been visited during the graph traversal.
-
Constructor Details
-
TraversalListenerAdapter
public TraversalListenerAdapter()
-
-
Method Details
-
connectedComponentFinished
Description copied from interface:TraversalListener
Called to inform listeners that the traversal of the current connected component has finished.- Specified by:
connectedComponentFinished
in interfaceTraversalListener<V,
E> - Parameters:
e
- the traversal event.- See Also:
-
connectedComponentStarted
Description copied from interface:TraversalListener
Called to inform listeners that a traversal of a new connected component has started.- Specified by:
connectedComponentStarted
in interfaceTraversalListener<V,
E> - Parameters:
e
- the traversal event.- See Also:
-
edgeTraversed
Description copied from interface:TraversalListener
Called to inform the listener that the specified edge have been visited during the graph traversal. Depending on the traversal algorithm, edge might be visited more than once.- Specified by:
edgeTraversed
in interfaceTraversalListener<V,
E> - Parameters:
e
- the edge traversal event.- See Also:
-
vertexTraversed
Description copied from interface:TraversalListener
Called to inform the listener that the specified vertex have been visited during the graph traversal. Depending on the traversal algorithm, vertex might be visited more than once.- Specified by:
vertexTraversed
in interfaceTraversalListener<V,
E> - Parameters:
e
- the vertex traversal event.- See Also:
-
vertexFinished
Description copied from interface:TraversalListener
Called to inform the listener that the specified vertex have been finished during the graph traversal. Exact meaning of "finish" is algorithm-dependent; e.g. for DFS, it means that all vertices reachable via the vertex have been visited as well.- Specified by:
vertexFinished
in interfaceTraversalListener<V,
E> - Parameters:
e
- the vertex traversal event.- See Also:
-