__getitem__
scipy.cluster.hierarchy.DisjointSet.
- DisjointSet.__getitem__(x)
Find the root element of x.
- Parameters:
- x : hashable object
Input element.
- Returns:
- root : hashable object
Root element of x.
Find the root element of x.
Input element.
Root element of x.