# 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
|
|
3252 | 3252 | |
3253 | 3253 | virtual void add(const Key& key) { |
3254 | 3254 | Parent::add(key); |
3255 | | unlace(key); |
| 3255 | lace(key); |
3256 | 3256 | } |
3257 | 3257 | |
3258 | 3258 | virtual void add(const std::vector<Key>& keys) { |
diff -r 78b9fb1f4454 -r 0f5b2bb21e94 test/maps_test.cc
a
|
b
|
|
641 | 641 | |
642 | 642 | const int num = 10; |
643 | 643 | Graph g; |
| 644 | Ibm map0(g, true); |
644 | 645 | std::vector<Item> items; |
645 | 646 | for (int i = 0; i < num; ++i) { |
646 | 647 | items.push_back(g.addNode()); |
… |
… |
|
722 | 723 | |
723 | 724 | const int num = 10; |
724 | 725 | Graph g; |
| 726 | Iim map0(g, 0); |
725 | 727 | std::vector<Item> items; |
726 | 728 | for (int i = 0; i < num; ++i) { |
727 | 729 | items.push_back(g.addNode()); |
… |
… |
|
772 | 774 | |
773 | 775 | const int num = 10; |
774 | 776 | Graph g; |
| 777 | Ivm map0(g, 0.0); |
775 | 778 | std::vector<Item> items; |
776 | 779 | for (int i = 0; i < num; ++i) { |
777 | 780 | items.push_back(g.addNode()); |