- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Superinterfaces:
EventListener,VertexSetListener<V>
- All Known Implementing Classes:
AsSubgraph.BaseGraphListener,ConnectivityInspector,NeighborCache
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies that an edge has been added to the graph.voidNotifies that an edge has been removed from the graph.default voidNotifies that an edge weight has been updated.Methods inherited from interface org.jgrapht.event.VertexSetListener
vertexAdded, vertexRemoved
-
Method Details
-
edgeAdded
Notifies that an edge has been added to the graph.- Parameters:
e- the edge event.
-
edgeRemoved
Notifies that an edge has been removed from the graph.- Parameters:
e- the edge event.
-
edgeWeightUpdated
Notifies that an edge weight has been updated.- Parameters:
e- the edge event.
-