test/unionfind_test.cc
changeset 2308 cddae1c4fee6
parent 2205 c20b0eb92a33
child 2391 14a343be7a5a
equal deleted inserted replaced
5:491a4c08d88b 6:36a1e1abce7f
    23 #include "test_tools.h"
    23 #include "test_tools.h"
    24 
    24 
    25 using namespace lemon;
    25 using namespace lemon;
    26 using namespace std;
    26 using namespace std;
    27 
    27 
    28 typedef UnionFindEnum<int, StdMap<int, int> > UFE;
    28 typedef UnionFindEnum<StdMap<int, int> > UFE;
    29 
    29 
    30 void print(UFE const &ufe) {
    30 void print(UFE const &ufe) {
    31   cout << "Print the classes of the structure:" << endl;
    31   cout << "Print the classes of the structure:" << endl;
    32   int i = 1;
    32   int i = 1;
    33   for (UFE::ClassIt cit(ufe); cit != INVALID; ++cit) {
    33   for (UFE::ClassIt cit(ufe); cit != INVALID; ++cit) {