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

bundles / scipy latest / scipy / _lib / _disjoint_set / DisjointSet / __getitem__

function

scipy._lib._disjoint_set:DisjointSet.__getitem__

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

Signature

def __getitem__(self, x)

Summary

Find the root element of x.

Parameters

x : hashable object

Input element.

Returns

root : hashable object

Root element of x.

Aliases

  • scipy.cluster.hierarchy.DisjointSet.__getitem__