Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| bool | isRoot (self, ConstUndirectedEdgeId a) |
| UndirectedEdgeId | parent (self, ConstUndirectedEdgeId a) |
| ConstUndirectedEdgeMap | parents (self) |
| int | size (self) |
Generated from: MR::BaseUnionFind<MR::UndirectedEdgeId> \\brief base of union-find data structures: stores only the parent forest and the operations that depend on it alone, so it is shared by the sequential UnionFind and the ParallelUnionFind \\tparam I is the identifier of a set's element, e.g. FaceId
| mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId) -> None 2. __init__(self: meshlib.mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId, arg0: meshlib.mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId) -> None Implicit copy constructor. 3. __init__(self: meshlib.mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId, : meshlib.mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId) -> None
| bool mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId.isRoot | ( | self, | |
| ConstUndirectedEdgeId | a ) |
returns true if given element is the root of some set
| UndirectedEdgeId mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId.parent | ( | self, | |
| ConstUndirectedEdgeId | a ) |
return parent element of this element, which is equal to given element only for set's root
| ConstUndirectedEdgeMap mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId.parents | ( | self | ) |
gets the parents of all elements as is
| int mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId.size | ( | self | ) |
returns the number of elements in union-find