Generated from: MR::UnionFind<MR::VertId>
\\brief Union-find data structure for representing disjoint sets of elements with few very quick operations:
1) union of two sets in one,
2) checking whether two elements pertain to the same set,
3) finding representative element (root) of each set by any set's element.
Sequential implementation that selects the root of a united pair by set size for best performance.
\\tparam I is the identifier of a set's element, e.g. FaceId
| mrmeshpy.ConstUnionFind_VertId.__init__ |
( |
| self, |
|
|
* | args, |
|
|
** | kwargs ) |
__init__(*args, **kwargs)
Overloaded function.
1. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId) -> None
2. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId, size: int) -> None
creates union-find with given number of elements, each element is the only one in its disjoint set
3. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId, base: meshlib.mrmeshpy.BaseUnionFind_VertId) -> None
adopts the parent forest of a base/parallel union-find and (re)computes set sizes,
so the result supports the full sequential interface (e.g. unite, sizeOfComp)
4. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId, arg0: meshlib.mrmeshpy.ConstUnionFind_VertId) -> None
Implicit copy constructor.
5. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId, : meshlib.mrmeshpy.ConstUnionFind_VertId) -> None