scipy.cluster.hierarchy.DisjointSet.subset

DisjointSet.subset(x)[source]

Get the subset containing x.

Parameters
xhashable object

Input element.

Returns
resultset

Subset containing x.