org._3pq.jgrapht.event

Interface TraversalListener

Known Implementing Classes:
TraversalListenerAdapter

public interface TraversalListener

A listener on graph iterator or on a graph traverser.
Author:
Barak Naveh
Since:
Jul 19, 2003

Method Summary

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)
Called to inform the listener that the specified edge have been visited during the graph traversal.
void
vertexTraversed(VertexTraversalEvent e)
Called to inform the listener that the specified vertex have been visited during the graph traversal.

Method Details

connectedComponentFinished

public void connectedComponentFinished(ConnectedComponentTraversalEvent e)
Called to inform listeners that the traversal of the current connected component has finished.
Parameters:
e - the traversal event.

connectedComponentStarted

public void connectedComponentStarted(ConnectedComponentTraversalEvent e)
Called to inform listeners that a traversal of a new connected component has started.
Parameters:
e - the traversal event.

edgeTraversed

public void edgeTraversed(EdgeTraversalEvent e)
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.
Parameters:
e - the edge traversal event.

vertexTraversed

public void vertexTraversed(VertexTraversalEvent e)
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.
Parameters:
e - the vertex traversal event.