This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / _lib / _disjoint_set / DisjointSet / connected

function

scipy._lib._disjoint_set:DisjointSet.connected

source: build-install/usr/lib/python3.14/site-packages/scipy/_lib/_disjoint_set.py:194

Signature

def connected(self, x, y)

Summary

Test whether x and y are in the same subset.

Parameters

x, y : hashable object

Elements to test.

Returns

result : bool

True if x and y are in the same set, False otherwise.

Aliases

  • scipy.cluster.hierarchy.DisjointSet.connected