TTK
Loading...
Searching...
No Matches
ttk::rpd::UnionFind Class Reference

#include <RipsPersistenceDiagramUtils.h>

Public Member Functions

 UnionFind (unsigned n)
 
int find (int x)
 
void merge (int x, int y)
 
int mergeRet (int x, int y)
 
bool isRoot (int x) const
 

Detailed Description

Definition at line 71 of file RipsPersistenceDiagramUtils.h.

Constructor & Destructor Documentation

◆ UnionFind()

ttk::rpd::UnionFind::UnionFind ( unsigned n)
explicit

Definition at line 3 of file RipsPersistenceDiagramUtils.cpp.

Member Function Documentation

◆ find()

int ttk::rpd::UnionFind::find ( int x)

Definition at line 10 of file RipsPersistenceDiagramUtils.cpp.

◆ isRoot()

bool ttk::rpd::UnionFind::isRoot ( int x) const
nodiscard

Definition at line 47 of file RipsPersistenceDiagramUtils.cpp.

◆ merge()

void ttk::rpd::UnionFind::merge ( int x,
int y )

Definition at line 16 of file RipsPersistenceDiagramUtils.cpp.

◆ mergeRet()

int ttk::rpd::UnionFind::mergeRet ( int x,
int y )

Definition at line 31 of file RipsPersistenceDiagramUtils.cpp.


The documentation for this class was generated from the following files: