Lines Matching defs:set1
74 int DisjointSets::mergeSets(int set1, int set2)76 if (rank_[set1] < rank_[set2])78 parent[set1] = set2;79 size[set2] += size[set1];82 if (rank_[set2] < rank_[set1])84 parent[set2] = set1;85 size[set1] += size[set2];86 return set1;88 parent[set1] = set2;90 size[set2] += size[set1];