68 for(
int i = 0; i < (int)sets.size() - 1; i++)
Minimalist debugging class.
Union Find implementation for connectivity tracking.
bool operator<(const UnionFind &other) const
bool operator>(const UnionFind &other) const
void setRank(const int &rank)
static UnionFind * makeUnion(UnionFind *uf0, UnionFind *uf1)
void setParent(UnionFind *parent)
static UnionFind * makeUnion(std::vector< UnionFind * > &sets)