diff -r c756973cd53c -r 36284b2500c3 src/test/max_matching_test.cc --- a/src/test/max_matching_test.cc Thu Jan 20 14:16:40 2005 +0000 +++ b/src/test/max_matching_test.cc Tue Jan 25 17:39:24 2005 +0000 @@ -22,8 +22,9 @@ #include "test_tools.h" #include #include -#include -#include +#include +//temporarily +#include using namespace std; using namespace lemon; @@ -53,13 +54,16 @@ if ( mate[v]!=INVALID ) ++s; } int size=(int)s/2; //size will be used as the size of a maxmatching - + + for(NodeIt v(G); v!=INVALID; ++v) { + max_matching.mate(v); + } + check ( size == max_matching.size(), "mate() returns a different size matching than max_matching.size()" ); Graph::NodeMap::pos_enum> pos0(G); max_matching.writePos(pos0); - max_matching.resetPos(); max_matching.resetMatching(); max_matching.runEdmonds(1); s=0; @@ -72,7 +76,6 @@ Graph::NodeMap::pos_enum> pos1(G); max_matching.writePos(pos1); - max_matching.resetPos(); max_matching.run(); s=0; max_matching.writeNMapNode(mate); @@ -84,7 +87,6 @@ Graph::NodeMap::pos_enum> pos2(G); max_matching.writePos(pos2); - max_matching.resetPos(); max_matching.resetMatching(); max_matching.run(); s=0;