Base class for adapter to graph
Create an edge in the model between source and target.
Upon succes it must emit the following event tuple: ("edge_added", ("edge_type", edge, sourceObs, targetObs)).
- "edge-type" is a edge-type string defined in the strategy used for a particular graph type.
- edge, sourceObs and targetObs are the observable objects
representing an egde and its two anchors.
Add an existing vertex to the model.
Upon succes it must emit the following event tuple: ("vertex_added", ("vertex_type", vertex)).
- "vertex-type" is a vertex-type string defined in the strategy used for a particular graph type.
- "vertex" is the observable object representing a vertex.
Used by the GraphListenerBase class to check if the types declared here are really implemented in the strategy
Used by the GraphListenerBase class to check if the types declared here are really implemented in the strategy
Create a new vertex at the defined position and add it to the model
Removes the specified vertex from the model.
Upon success it must emit the following event tuple: ("edge_removed", (edge,)).
- edge is the observable object representing an edge.
Removes the specified vertex from the model.
Upon success it must emit the following event tuple: ("vertex_removed", (vertex,)).
- vertex is the observable object representing a vertex.
Interfaces for the generic graph view module. The graph view widget won't check for inheritance of the object's it is passed. Instead, it will check the interfaces match more or less.
Interface for connectable objects
Interface for edges between two vertexs.
Base class for elements in a GraphView
Interface for edges to be drawn during creation time, ie while the user drags.