COIN-OR::LEMON - Graph Library

Changeset 1964:df0b07457083 in lemon-0.x


Ignore:
Timestamp:
02/06/06 21:32:29 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2541
Message:

Bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/sub_graph.h

    r1956 r1964  
    276276        Parent::operator[](node).firstOut = INVALID;
    277277      }
     278
    278279      virtual void add(const std::vector<Node>& nodes) {
    279280        Parent::add(nodes);
     
    357358          adaptor.hide(edges[i]);
    358359        }
    359         Parent::erase(edge);
     360        Parent::erase(edges);
    360361      }
    361362
     
    587588      }
    588589
     590      virtual void add(const std::vector<Node>& nodes) {
     591        Parent::add(nodes);
     592        for (int i = 0; i < (int)nodes.size(); ++i) {
     593          Parent::operator[](nodes[i]).firstIn = INVALID;
     594          Parent::operator[](nodes[i]).firstOut = INVALID;
     595        }
     596      }
     597
    589598    private:
    590599      SubGraph& adaptor;
     
    647656          adaptor.hide(edges[i]);
    648657        }
    649         Parent::erase(edge);
     658        Parent::erase(edges);
    650659      }
    651660
Note: See TracChangeset for help on using the changeset viewer.