class documentation

class Position:

View In Hierarchy

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
def __init__(self, container, e):

Create a new position that is the leader of its own group.

def element(self):

Return element stored at this position.

__slots__: tuple[str, ...] =

Undocumented

_container =

Undocumented

_element =

Undocumented

_parent =

Undocumented

_size: int =

Undocumented