|
| None | __init__ (self) |
| None | __init__ (self, int size) |
| None | __init__ (self, BaseUnionFind_VertId base) |
| None | __init__ (self, ConstUnionFind_VertId arg0) |
| VertId | add (self) |
| UnionFind_VertId | assign (self, ConstUnionFind_VertId other) |
| None | reset (self, int size) |
| int | sizeOfComp (self, ConstVertId a) |
| tuple[VertId, bool] | unite (self, ConstVertId first, ConstVertId second) |
| | __init__ (self, *args, **kwargs) |
| | __init__ (self, *args, **kwargs) |
| bool | isRoot (self, ConstVertId a) |
| VertId | parent (self, ConstVertId a) |
| ConstVertMap | parents (self) |
| int | size (self) |
| None | __init__ (self) |
| None | __init__ (self, ConstBaseUnionFind_VertId arg0) |
| VertId | find (self, ConstVertId a) |
| VertId | findUpdateRange (self, ConstVertId a, ConstVertId begin, ConstVertId end) |
| ConstVertMap | roots (self) |
| tuple[VertId, bool] | uniteUnbalanced (self, ConstVertId first, ConstVertId second) |
| bool | united (self, ConstVertId first, ConstVertId second) |
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