DisjointSet (a.k.a. union–find data structure or merge–find set) implementation for Python.
conda install conda-forge::disjoint-set