scipy.cluster.hierarchy.DisjointSet.subsets

DisjointSet.subsets()[source]

Get all the subsets in the disjoint set.

Returns
resultlist

Subsets in the disjoint set.