SciPy

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