MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-577225.py

File recipe-577225.py

recipes/Python/577225_UnionFind/recipe-577225.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2MakeSet(x) initializes disjoint set for object x
3Find(x) returns representative object of the set containing x
4Union(x,y) makes two sets containing x and y respectively into one set

Callers

nothing calls this directly

Calls 6

strFunction · 0.85
MakeSetFunction · 0.85
FindFunction · 0.85
groupbyMethod · 0.80
NodeClass · 0.70
UnionFunction · 0.70

Tested by

no test coverage detected