Package org.jgrapht
Interface ListenableGraph<V,E>
-
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Superinterfaces:
Graph<V,E>
- All Known Implementing Classes:
DefaultListenableGraph
public interface ListenableGraph<V,E> extends Graph<V,E>
A graph that supports listeners on structural change events.- Author:
- Barak Naveh
- See Also:
GraphListener
,VertexSetListener
-
-
Field Summary
-
Fields inherited from interface org.jgrapht.Graph
DEFAULT_EDGE_WEIGHT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addGraphListener(GraphListener<V,E> l)
Adds the specified graph listener to this graph, if not already present.void
addVertexSetListener(VertexSetListener<V> l)
Adds the specified vertex set listener to this graph, if not already present.void
removeGraphListener(GraphListener<V,E> l)
Removes the specified graph listener from this graph, if present.void
removeVertexSetListener(VertexSetListener<V> l)
Removes the specified vertex set listener from this graph, if present.-
Methods inherited from interface org.jgrapht.Graph
addEdge, addEdge, addVertex, addVertex, containsEdge, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeSource, getEdgeSupplier, getEdgeTarget, getEdgeWeight, getType, getVertexSupplier, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, setEdgeWeight, setEdgeWeight, vertexSet
-
-
-
-
Method Detail
-
addGraphListener
void addGraphListener(GraphListener<V,E> l)
Adds the specified graph listener to this graph, if not already present.- Parameters:
l
- the listener to be added.
-
addVertexSetListener
void addVertexSetListener(VertexSetListener<V> l)
Adds the specified vertex set listener to this graph, if not already present.- Parameters:
l
- the listener to be added.
-
removeGraphListener
void removeGraphListener(GraphListener<V,E> l)
Removes the specified graph listener from this graph, if present.- Parameters:
l
- the listener to be removed.
-
removeVertexSetListener
void removeVertexSetListener(VertexSetListener<V> l)
Removes the specified vertex set listener from this graph, if present.- Parameters:
l
- the listener to be removed.
-
-