src/lemon/extendable_graph_extender.h
changeset 1011 5bd6c7671c9e
parent 946 c94ef40a22ce
child 1022 567f392d1d2e
equal deleted inserted replaced
0:5c531867d7ab 1:74f73b02b2c8
    15     typedef typename Parent::Node Node;
    15     typedef typename Parent::Node Node;
    16     typedef typename Parent::Edge Edge;
    16     typedef typename Parent::Edge Edge;
    17 
    17 
    18     Node addNode() {
    18     Node addNode() {
    19       Node node = Parent::addNode();
    19       Node node = Parent::addNode();
    20       Parent::getNodeObserverRegistry().add(node);
    20       Parent::getObserverRegistry(Node()).add(node);
    21       return node;
    21       return node;
    22     }
    22     }
    23     
    23     
    24     Edge addEdge(const Node& from, const Node& to) {
    24     Edge addEdge(const Node& from, const Node& to) {
    25       Edge edge = Parent::addEdge(from, to);
    25       Edge edge = Parent::addEdge(from, to);
    26       Parent::getEdgeObserverRegistry().add(edge);
    26       Parent::getObserverRegistry(Edge()).add(edge);
    27       return edge;
    27       return edge;
    28     }
    28     }
    29 
    29 
    30   };
    30   };
    31 
    31