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.subset

DisjointSet.subset(self, x)[source]

Get the subset containing x.

Parameters
xhashable object

Input element.

Returns
resultset

Subset containing x.

Previous topic

scipy.cluster.hierarchy.DisjointSet.connected

Next topic

scipy.cluster.hierarchy.DisjointSet.subsets