class documentation
class Position:
A representation of a universe of elements organized into disjoint subsets.
This implementation uses a tree-based representation of sets with path compression during the find operation and performing unions with union-by-size heuristic.
Method | __init__ |
Create a new position that is the leader of its own group. |
Method | element |
Return element stored at this position. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | _container |
Undocumented |
Instance Variable | _element |
Undocumented |
Instance Variable | _parent |
Undocumented |
Instance Variable | _size |
Undocumented |