presto-main/src/main/java/io/prestosql/util/DisjointSet.java/DisjointSet/findAndUnion
class DisjointSet:    public boolean findAndUnion(T node1, T node2)
    {
        return union(find(node1), find(node2));
    }