4.2. Union Find

The unionfind module includes a basic implementation to do union-find, useful for many merge tree and connected component tasks throughout the code. _TODO_: Add more information about the module and write documentation for the pieces.

class cereeberus.compute.unionfind.UnionFind(vertices)[source]
__init__(vertices)[source]
find(node)[source]
union(node1, node2)[source]