V
- the graph vertex typeE
- the graph edge typepublic class TraversalListenerAdapter<V,E> extends Object implements TraversalListener<V,E>
TraversalListener
interface used for
subclasses.Constructor and Description |
---|
TraversalListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
connectedComponentFinished(ConnectedComponentTraversalEvent e)
Called to inform listeners that the traversal of the current connected component has
finished.
|
void |
connectedComponentStarted(ConnectedComponentTraversalEvent e)
Called to inform listeners that a traversal of a new connected component has started.
|
void |
edgeTraversed(EdgeTraversalEvent<E> e)
Called to inform the listener that the specified edge have been visited during the graph
traversal.
|
void |
vertexFinished(VertexTraversalEvent<V> e)
Called to inform the listener that the specified vertex have been finished during the graph
traversal.
|
void |
vertexTraversed(VertexTraversalEvent<V> e)
Called to inform the listener that the specified vertex have been visited during the graph
traversal.
|
public void connectedComponentFinished(ConnectedComponentTraversalEvent e)
TraversalListener
connectedComponentFinished
in interface TraversalListener<V,E>
e
- the traversal event.TraversalListener.connectedComponentFinished(ConnectedComponentTraversalEvent)
public void connectedComponentStarted(ConnectedComponentTraversalEvent e)
TraversalListener
connectedComponentStarted
in interface TraversalListener<V,E>
e
- the traversal event.TraversalListener.connectedComponentStarted(ConnectedComponentTraversalEvent)
public void edgeTraversed(EdgeTraversalEvent<E> e)
TraversalListener
edgeTraversed
in interface TraversalListener<V,E>
e
- the edge traversal event.TraversalListener.edgeTraversed(EdgeTraversalEvent)
public void vertexTraversed(VertexTraversalEvent<V> e)
TraversalListener
vertexTraversed
in interface TraversalListener<V,E>
e
- the vertex traversal event.TraversalListener.vertexTraversed(VertexTraversalEvent)
public void vertexFinished(VertexTraversalEvent<V> e)
TraversalListener
vertexFinished
in interface TraversalListener<V,E>
e
- the vertex traversal event.TraversalListener.vertexFinished(VertexTraversalEvent)
Copyright © 2018. All rights reserved.