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/erasable_graph_extender.h

    r1307 r1414  
    33#ifndef LEMON_ERASABLE_GRAPH_EXTENDER_H
    44#define LEMON_ERASABLE_GRAPH_EXTENDER_H
     5
     6#include <vector>
    57
    68#include <lemon/invalid.h>
     
    6870   
    6971    void erase(const UndirEdge& uedge) {
    70       Parent::getNotifier(Edge()).erase(Edge(uedge,true));
    71       Parent::getNotifier(Edge()).erase(Edge(uedge,false));
     72      std::vector<Edge> edges;
     73      edges.push_back(Edge(uedge,true));
     74      edges.push_back(Edge(uedge,false));
     75      Parent::getNotifier(Edge()).erase(edges);
    7276      Parent::getNotifier(UndirEdge()).erase(uedge);
    7377      Parent::erase(uedge);
Note: See TracChangeset for help on using the changeset viewer.