|
| None | __init__ (self) |
| None | __init__ (self, int size) |
| None | __init__ (self, BaseUnionFind_UndirectedEdgeId base) |
| None | __init__ (self, UnionFind_UndirectedEdgeId arg0) |
| None | reset (self, int size) |
| int | sizeOfComp (self, UndirectedEdgeId a) |
| tuple[UndirectedEdgeId, bool] | unite (self, UndirectedEdgeId first, UndirectedEdgeId second) |
| None | __init__ (self) |
| None | __init__ (self, BaseUnionFind_UndirectedEdgeId arg0) |
| UndirectedEdgeId | find (self, UndirectedEdgeId a) |
| UndirectedEdgeId | findUpdateRange (self, UndirectedEdgeId a, UndirectedEdgeId begin, UndirectedEdgeId end) |
| bool | isRoot (self, UndirectedEdgeId a) |
| UndirectedEdgeId | parent (self, UndirectedEdgeId a) |
| UndirectedEdgeMap | parents (self) |
| UndirectedEdgeMap | roots (self) |
| int | size (self) |
| tuple[UndirectedEdgeId, bool] | uniteUnbalanced (self, UndirectedEdgeId first, UndirectedEdgeId second) |
| bool | united (self, UndirectedEdgeId first, UndirectedEdgeId 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