connected — SciPy v1.15.3 Manual (original) (raw)
scipy.cluster.hierarchy.DisjointSet.
DisjointSet.connected(x, y)[source]#
Test whether x and y are in the same subset.
Parameters:
x, yhashable object
Elements to test.
Returns:
resultbool
True if x and y are in the same set, False otherwise.