public class ConnectedSetListener extends NullGraphListener
| Constructor and Description |
|---|
ConnectedSetListener(Graph graph)
Construct a new ConnectedSetListener, building sets based on any
existing graph components.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterEdgeAdded(GraphAddEdgeEvent event)
Called when an edge is being added to a graph, just after the graph
structure has actually been changed.
|
void |
afterEdgeRemoved(GraphRemoveEdgeEvent event)
Called when an edge is being removed from a graph, just after the
graph structure has actually been changed.
|
void |
afterVertexAdded(GraphAddVertexEvent event)
Called when a vertex is being added to a graph, just after the graph
structure has actually been changed.
|
void |
afterVertexRemoved(GraphRemoveVertexEvent event)
Called when a vertex is being removed from a graph, just after the
graph structure has actually been changed.
|
Set |
getConnectedSet(Vertex v)
Get the connected set to which the given vertex belongs.
|
Collection |
getConnectedSets()
Get a collection of all connected sets for this graph.
|
beforeEdgeAdded, beforeEdgeRemoved, beforeVertexAdded, beforeVertexRemovedpublic ConnectedSetListener(Graph graph)
graph - the graph on which to construct the listener;
this constructor will automatically register the new listener
with the graphpublic Set getConnectedSet(Vertex v)
v - the vertex to search forpublic Collection getConnectedSets()
public void afterEdgeAdded(GraphAddEdgeEvent event)
GraphListenerafterEdgeAdded in interface GraphListenerafterEdgeAdded in class NullGraphListenerevent - the event describing the edge additionpublic void afterVertexAdded(GraphAddVertexEvent event)
GraphListenerafterVertexAdded in interface GraphListenerafterVertexAdded in class NullGraphListenerevent - the event describing the vertex additionpublic void afterEdgeRemoved(GraphRemoveEdgeEvent event)
GraphListenerafterEdgeRemoved in interface GraphListenerafterEdgeRemoved in class NullGraphListenerevent - the event describing the edge removalpublic void afterVertexRemoved(GraphRemoveVertexEvent event)
GraphListenerafterVertexRemoved in interface GraphListenerafterVertexRemoved in class NullGraphListenerevent - the event describing the vertex removalCopyright © 2019 JULIE Lab, Germany. All rights reserved.