Skip to main content

Module union_find

Module union_find 

Source

Structs§

UnionFind
Deterministic union-find (smallest index wins as representative).

Functions§

find_keyed_root
Full compression for sparse identifiers, preserving the caller’s chosen representative.
find_root
Path-halving over an existing parent slice; preserves the caller’s root policy.