src/lemon/bits/extendable_graph_extender.h
changeset 1415 2a5810c2f806
parent 1307 d4acebef7276
equal deleted inserted replaced
0:ced3728b502e 1:164543496c7b
    48 
    48 
    49     UndirEdge addEdge(const Node& from, const Node& to) {
    49     UndirEdge addEdge(const Node& from, const Node& to) {
    50       UndirEdge uedge = Parent::addEdge(from, to);
    50       UndirEdge uedge = Parent::addEdge(from, to);
    51       Parent::getNotifier(UndirEdge()).add(uedge);
    51       Parent::getNotifier(UndirEdge()).add(uedge);
    52 
    52 
    53       Edge edge_forward(uedge, true);
    53       std::vector<Edge> edges;
    54       Edge edge_backward(uedge, false);
    54       edges.push_back(Edge(uedge, true));
    55       Parent::getNotifier(Edge()).add(edge_forward);
    55       edges.push_back(Edge(uedge, false));
    56       Parent::getNotifier(Edge()).add(edge_backward);
    56       Parent::getNotifier(Edge()).add(edges);
    57 
    57 
    58       return uedge;
    58       return uedge;
    59     }
    59     }
    60 
    60 
    61   };
    61   };