public class DirectedAcyclicGraphListener extends NullGraphListener
| Constructor and Description |
|---|
DirectedAcyclicGraphListener(DirectedAcyclicGraph graph)
Creates a new DirectedAcyclicGraphListener for the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeEdgeAdded(GraphAddEdgeEvent event)
Called when an edge is being added to a graph, just before the graph
structure is actually changed.
|
List |
getRoot()
Implementation for DirectedAcyclicGraph.getRoot().
|
afterEdgeAdded, afterEdgeRemoved, afterVertexAdded, afterVertexRemoved, beforeEdgeRemoved, beforeVertexAdded, beforeVertexRemovedpublic DirectedAcyclicGraphListener(DirectedAcyclicGraph graph)
graph - the graph to which this listener is to be attached;
this constructor will automatically register the listener
to receive all eventspublic void beforeEdgeAdded(GraphAddEdgeEvent event) throws Exception
GraphListenerbeforeEdgeAdded in interface GraphListenerbeforeEdgeAdded in class NullGraphListenerevent - the event describing the edge additionExceptionpublic List getRoot()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.