bundles / scipy 1.17.1 / scipy / _lib / _disjoint_set / DisjointSet / connected
function
scipy._lib._disjoint_set:DisjointSet.connected
Signature
def connected ( self , x , y ) Summary
Test whether x and y are in the same subset.
Parameters
x, y: hashable objectElements to test.
Returns
result: boolTrue if
xandyare in the same set, False otherwise.
Aliases
-
scipy.cluster.hierarchy.DisjointSet.connected