Class GraphEventProxy

Class Documentation

class GraphEventProxy

This class enables the observer pattern for dynamic graphs: It has the same modifiers as a Graph object. When these modifiers are called, they are also called on the underlying graphs. Also, all registered observers (type GraphEventHandler) are notified.

Public Functions

GraphEventProxy(Graph &G)
void registerObserver(GraphEventHandler *observer)
node addNode()
void removeNode(node u)
void restoreNode(node u)
void addEdge(node u, node v, edgeweight weight = defaultEdgeWeight)
void removeEdge(node u, node v)
void setWeight(node u, node v, edgeweight w)
void incrementWeight(node u, node v, edgeweight delta)
void timeStep()

Public Members

Graph *G