src/work/athos/union_find.h
changeset 942 75fdd0c6866d
parent 250 81a3d0abe5f3
child 987 87f7c54892df
equal deleted inserted replaced
0:af113950259a 1:330c5ac64180
    11 
    11 
    12 #include <vector>
    12 #include <vector>
    13 //#include <map>
    13 //#include <map>
    14 
    14 
    15 
    15 
    16 namespace hugo {
    16 namespace lemon {
    17   
    17   
    18   template <typename KeyType, typename KeyIntMap>
    18   template <typename KeyType, typename KeyIntMap>
    19     class UnionFind {
    19     class UnionFind {
    20     KeyIntMap& pointmap;
    20     KeyIntMap& pointmap;
    21     struct VectorElementType {
    21     struct VectorElementType {
    88 	mergeInto(b1,b2);
    88 	mergeInto(b1,b2);
    89       }
    89       }
    90     }//unio
    90     }//unio
    91   };
    91   };
    92   
    92   
    93 }//namespace hugo
    93 }//namespace lemon
    94 #endif
    94 #endif