- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Superinterfaces:
Graph<V,
E>
- All Known Implementing Classes:
DefaultListenableGraph
A graph that supports listeners on structural change events.
- Author:
- Barak Naveh
- See Also:
-
Field Summary
Fields inherited from interface org.jgrapht.Graph
DEFAULT_EDGE_WEIGHT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified graph listener to this graph, if not already present.void
Adds the specified vertex set listener to this graph, if not already present.void
Removes the specified graph listener from this graph, if present.void
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, iterables, outDegreeOf, outgoingEdgesOf, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, setEdgeWeight, setEdgeWeight, vertexSet
-
Method Details
-
addGraphListener
Adds the specified graph listener to this graph, if not already present.- Parameters:
l
- the listener to be added.
-
addVertexSetListener
Adds the specified vertex set listener to this graph, if not already present.- Parameters:
l
- the listener to be added.
-
removeGraphListener
Removes the specified graph listener from this graph, if present.- Parameters:
l
- the listener to be removed.
-
removeVertexSetListener
Removes the specified vertex set listener from this graph, if present.- Parameters:
l
- the listener to be removed.
-