core :: DisjointSet :: find
require: has(e)
has(e)
# Get the root node of an element # require: `has(e)` private fun find(e:E): DisjointSetNode do assert nodes.has_key(e) var ne = nodes[e] if ne.parent == ne then return ne var res = nfind(ne) nodes[e] = res return res end