COIN-OR::LEMON - Graph Library

Ticket #420: 0f5b2bb21e94.patch

File 0f5b2bb21e94.patch, 1.2 KB (added by Alpar Juttner, 8 years ago)
  • lemon/maps.h

    # HG changeset patch
    # User Balazs Dezso <deba@inf.elte.hu>
    # Date 1303675171 -7200
    # Node ID 0f5b2bb21e945f8a0773568006095762d3d5682b
    # Parent  78b9fb1f4454f03e1ff76bba1d7eded99945d968
    Fix IterableValueMap
    
    diff -r 78b9fb1f4454 -r 0f5b2bb21e94 lemon/maps.h
    a b  
    32523252
    32533253    virtual void add(const Key& key) {
    32543254      Parent::add(key);
    3255       unlace(key);
     3255      lace(key);
    32563256    }
    32573257
    32583258    virtual void add(const std::vector<Key>& keys) {
  • test/maps_test.cc

    diff -r 78b9fb1f4454 -r 0f5b2bb21e94 test/maps_test.cc
    a b  
    641641
    642642    const int num = 10;
    643643    Graph g;
     644    Ibm map0(g, true);
    644645    std::vector<Item> items;
    645646    for (int i = 0; i < num; ++i) {
    646647      items.push_back(g.addNode());
     
    722723
    723724    const int num = 10;
    724725    Graph g;
     726    Iim map0(g, 0);
    725727    std::vector<Item> items;
    726728    for (int i = 0; i < num; ++i) {
    727729      items.push_back(g.addNode());
     
    772774
    773775    const int num = 10;
    774776    Graph g;
     777    Ivm map0(g, 0.0);
    775778    std::vector<Item> items;
    776779    for (int i = 0; i < num; ++i) {
    777780      items.push_back(g.addNode());