dset (pypi): Disjoint-Set implementation with heuristic optimizations (union-by-rank and path-compression)
Keywords: data-structures