scipy.cluster.hierarchy.DisjointSet.

__getitem__#

DisjointSet.__getitem__(x)[source]#

Find the root element of x.

Parameters:
xhashable object

Input element.

Returns:
roothashable object

Root element of x.