COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
05/14/05 19:20:40 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1884
Message:

Handling simultan edge adding.
Fixed bug: directed edge maps for undir graphs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/bits/extendable_graph_extender.h

    r1307 r1414  
    5151      Parent::getNotifier(UndirEdge()).add(uedge);
    5252
    53       Edge edge_forward(uedge, true);
    54       Edge edge_backward(uedge, false);
    55       Parent::getNotifier(Edge()).add(edge_forward);
    56       Parent::getNotifier(Edge()).add(edge_backward);
     53      std::vector<Edge> edges;
     54      edges.push_back(Edge(uedge, true));
     55      edges.push_back(Edge(uedge, false));
     56      Parent::getNotifier(Edge()).add(edges);
    5757
    5858      return uedge;
Note: See TracChangeset for help on using the changeset viewer.