COIN-OR::LEMON - Graph Library

Changeset 2283:a877258468e4 in lemon-0.x


Ignore:
Timestamp:
10/31/06 15:28:27 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3047
Message:

Bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/graph_extender.h

    r2260 r2283  
    674674      UEdge uedge = Parent::addEdge(from, to);
    675675      getNotifier(UEdge()).add(uedge);
    676       getNotifier(Edge()).add(Parent::direct(uedge, true));
    677       getNotifier(Edge()).add(Parent::direct(uedge, false));
     676      std::vector<Edge> edges;
     677      edges.push_back(Parent::direct(uedge, true));
     678      edges.push_back(Parent::direct(uedge, false));     
     679      getNotifier(Edge()).add(edges);
    678680      return uedge;
    679681    }
     
    705707
    706708    void erase(const UEdge& uedge) {
    707       getNotifier(Edge()).erase(Parent::direct(uedge, true));
    708       getNotifier(Edge()).erase(Parent::direct(uedge, false));
     709      std::vector<Edge> edges;
     710      edges.push_back(Parent::direct(uedge, true));
     711      edges.push_back(Parent::direct(uedge, false));     
     712      getNotifier(Edge()).erase(edges);
    709713      getNotifier(UEdge()).erase(uedge);
    710714      Parent::erase(uedge);
Note: See TracChangeset for help on using the changeset viewer.