Class ConnectivityInspector.MyTraversalListener
java.lang.Object
org.jgrapht.event.TraversalListenerAdapter<V,E>
org.jgrapht.alg.connectivity.ConnectivityInspector.MyTraversalListener
- All Implemented Interfaces:
TraversalListener<V,E>
- Enclosing class:
ConnectivityInspector<V,E>
A traversal listener that groups all vertices according to to their containing connected set.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled to inform listeners that the traversal of the current connected component has finished.voidCalled to inform listeners that a traversal of a new connected component has started.voidCalled to inform the listener that the specified vertex have been visited during the graph traversal.Methods inherited from class TraversalListenerAdapter
edgeTraversed, vertexFinished
-
Field Details
-
currentConnectedSet
-
-
Constructor Details
-
MyTraversalListener
private MyTraversalListener()
-
-
Method Details
-
connectedComponentFinished
Description copied from interface:TraversalListenerCalled to inform listeners that the traversal of the current connected component has finished.- Specified by:
connectedComponentFinishedin interfaceTraversalListener<V,E> - Overrides:
connectedComponentFinishedin classTraversalListenerAdapter<V,E> - Parameters:
e- the traversal event.- See Also:
-
connectedComponentStarted
Description copied from interface:TraversalListenerCalled to inform listeners that a traversal of a new connected component has started.- Specified by:
connectedComponentStartedin interfaceTraversalListener<V,E> - Overrides:
connectedComponentStartedin classTraversalListenerAdapter<V,E> - Parameters:
e- the traversal event.- See Also:
-
vertexTraversed
Description copied from interface:TraversalListenerCalled 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:
vertexTraversedin interfaceTraversalListener<V,E> - Overrides:
vertexTraversedin classTraversalListenerAdapter<V,E> - Parameters:
e- the vertex traversal event.- See Also:
-