Merge bugfix #420
authorAlpar Juttner <alpar@cs.elte.hu>
Tue, 26 Apr 2011 17:25:00 +0200
changeset 10594f9e5801224e
parent 1056 6660ac776acf
parent 1057 633956ca9421
child 1066 f9e3f73e17f1
Merge bugfix #420
     1.1 --- a/lemon/maps.h	Tue Apr 12 08:04:04 2011 +0200
     1.2 +++ b/lemon/maps.h	Tue Apr 26 17:25:00 2011 +0200
     1.3 @@ -3252,7 +3252,7 @@
     1.4  
     1.5      virtual void add(const Key& key) {
     1.6        Parent::add(key);
     1.7 -      unlace(key);
     1.8 +      lace(key);
     1.9      }
    1.10  
    1.11      virtual void add(const std::vector<Key>& keys) {
     2.1 --- a/test/maps_test.cc	Tue Apr 12 08:04:04 2011 +0200
     2.2 +++ b/test/maps_test.cc	Tue Apr 26 17:25:00 2011 +0200
     2.3 @@ -641,6 +641,7 @@
     2.4  
     2.5      const int num = 10;
     2.6      Graph g;
     2.7 +    Ibm map0(g, true);
     2.8      std::vector<Item> items;
     2.9      for (int i = 0; i < num; ++i) {
    2.10        items.push_back(g.addNode());
    2.11 @@ -722,6 +723,7 @@
    2.12  
    2.13      const int num = 10;
    2.14      Graph g;
    2.15 +    Iim map0(g, 0);
    2.16      std::vector<Item> items;
    2.17      for (int i = 0; i < num; ++i) {
    2.18        items.push_back(g.addNode());
    2.19 @@ -772,6 +774,7 @@
    2.20  
    2.21      const int num = 10;
    2.22      Graph g;
    2.23 +    Ivm map0(g, 0.0);
    2.24      std::vector<Item> items;
    2.25      for (int i = 0; i < num; ++i) {
    2.26        items.push_back(g.addNode());