|
| None | __init__ (self) |
| None | __init__ (self, int size) |
| None | __init__ (self, BaseUnionFind_UndirectedEdgeId base) |
| None | __init__ (self, ConstUnionFind_UndirectedEdgeId arg0) |
| UndirectedEdgeId | add (self) |
| UnionFind_UndirectedEdgeId | assign (self, ConstUnionFind_UndirectedEdgeId other) |
| None | reset (self, int size) |
| int | sizeOfComp (self, ConstUndirectedEdgeId a) |
| tuple[UndirectedEdgeId, bool] | unite (self, ConstUndirectedEdgeId first, ConstUndirectedEdgeId second) |
| | __init__ (self, *args, **kwargs) |
| | __init__ (self, *args, **kwargs) |
| bool | isRoot (self, ConstUndirectedEdgeId a) |
| UndirectedEdgeId | parent (self, ConstUndirectedEdgeId a) |
| ConstUndirectedEdgeMap | parents (self) |
| int | size (self) |
| None | __init__ (self) |
| None | __init__ (self, ConstBaseUnionFind_UndirectedEdgeId arg0) |
| UndirectedEdgeId | find (self, ConstUndirectedEdgeId a) |
| UndirectedEdgeId | findUpdateRange (self, ConstUndirectedEdgeId a, ConstUndirectedEdgeId begin, ConstUndirectedEdgeId end) |
| ConstUndirectedEdgeMap | roots (self) |
| tuple[UndirectedEdgeId, bool] | uniteUnbalanced (self, ConstUndirectedEdgeId first, ConstUndirectedEdgeId second) |
| bool | united (self, ConstUndirectedEdgeId first, ConstUndirectedEdgeId second) |
Generated from: MR::UnionFind<MR::UndirectedEdgeId>
\\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