org.jscience.computing.graph.events
Interface GraphListener

All Superinterfaces:
java.util.EventListener, VertexSetListener
All Known Implementing Classes:
ConnectivityInspector

public interface GraphListener
extends VertexSetListener

A listener that is notified when the graph changes.

If only notifications on vertex set changes are required it is more efficient to use the VertexSetListener.

Since:
Jul 18, 2003
See Also:
VertexSetListener

Method Summary
 void edgeAdded(GraphEdgeChangeEvent e)
          Notifies that an edge has been added to the graph.
 void edgeRemoved(GraphEdgeChangeEvent e)
          Notifies that an edge has been removed from the graph.
 
Methods inherited from interface org.jscience.computing.graph.events.VertexSetListener
vertexAdded, vertexRemoved
 

Method Detail

edgeAdded

void edgeAdded(GraphEdgeChangeEvent e)
Notifies that an edge has been added to the graph.

Parameters:
e - the edge event.

edgeRemoved

void edgeRemoved(GraphEdgeChangeEvent e)
Notifies that an edge has been removed from the graph.

Parameters:
e - the edge event.