scipy.cluster
scipy.cluster.hierarchy
DisjointSet.
subset
Get the subset containing x.
Input element.
Subset containing x.
scipy.cluster.hierarchy.DisjointSet.connected
scipy.cluster.hierarchy.DisjointSet.subsets