DisjointSet.
connected
Test whether x and y are in the same subset.
Elements to test.
True if x and y are in the same set, False otherwise.