40namespace datastructure {
70 unsigned int find(
unsigned int u) {
87 void merge(
unsigned int u,
unsigned int v) {
Basic declarations, included by all source files.
Implements the Union Find Datastructure to maintain disjoint sets efficiently.
UnionFind(unsigned int max_element)
Create a new set representation with not more than max_element elements.
unsigned int find(unsigned int u)
Find the representative to element u.
void merge(unsigned int u, unsigned int v)
Merge the two sets containing u and v.
unsigned int operator[](unsigned int u)
void all_to_singletons()
Assigns every element to a singleton set.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.