org.grinvin.graphs
Interface GraphModel
- GraphView
- MutableGraphModel
- DefaultGraphModel
public interface GraphModel
A
GraphView which at the same time functions as a model
in a model-view-controller triple. A
GraphListener may
register itself with this model to be informed about various changes:
- Addition or removal of an edge or vertex.
- Changes in annotation of a vertex or an edge.
- Bulk changes to the graph.
areAdjacent, contains, contains, edgeIterator, edges, getEdge, getNumberOfEdges, getNumberOfVertices, getVertex, vertexIterator, vertices |
addGraphListener
public void addGraphListener(GraphListener l)
Register a graph listener with this model.
removeGraphListener
public void removeGraphListener(GraphListener l)
Unregister a previously registered graph listener.