org._3pq.jgrapht.event

Interface VertexSetListener

All Superinterfaces:
EventListener
Known Subinterfaces:
GraphListener
Known Implementing Classes:
ConnectivityInspector

public interface VertexSetListener
extends EventListener

A listener that is notified when the graph's vertex set changes. It should be used when only notifications on vertex-set changes are of interest. If all graph notifications are of interest better use GraphListener.
Author:
Barak Naveh
Since:
Jul 18, 2003
See Also:
GraphListener

Method Summary

void
vertexAdded(GraphVertexChangeEvent e)
Notifies that a vertex has been added to the graph.
void
vertexRemoved(GraphVertexChangeEvent e)
Notifies that a vertex has been removed from the graph.

Method Details

vertexAdded

public void vertexAdded(GraphVertexChangeEvent e)
Notifies that a vertex has been added to the graph.
Parameters:
e - the vertex event.

vertexRemoved

public void vertexRemoved(GraphVertexChangeEvent e)
Notifies that a vertex has been removed from the graph.
Parameters:
e - the vertex event.