#include <galaxy_class.hpp>
◆ UnionFind()
This method initializes the union-find structure as a singleton.
◆ find()
This method finds the representative element of the UF structure, while performing the path compression.
- Returns
- the representative UnionFind of the group.
◆ is_singleton()
bool UnionFind::is_singleton |
( |
| ) |
|
This method checks if an object is a singleton.
◆ join()
This method joins the UnionFind passed as an argument.
- Parameters
-
◆ parent
Class structure for union find algorithm.
UnionFind parent.
The documentation for this class was generated from the following file: