SciPy
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.
previous
scipy.cluster.hierarchy.DisjointSet.merge
next
scipy.cluster.hierarchy.DisjointSet.subset