scipy.cluster.hierarchy.DisjointSet. __getitem__# DisjointSet.__getitem__(x)[source]# Find the root element of x. Parameters: xhashable objectInput element. Returns: roothashable objectRoot element of x.