SciPy

This is documentation for an old release of SciPy (version 1.6.2). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.cluster.hierarchy.DisjointSet.__getitem__

DisjointSet.__getitem__(self, x)[source]

Find the root element of x.

Parameters
xhashable object

Input element.

Returns
roothashable object

Root element of x.

Previous topic

scipy.cluster.hierarchy.DisjointSet.subsets

Next topic

Constants (scipy.constants)