libvot
0.1.3
A C++11 multithread library for image retrieval
|
Union-find data structure, used in various graph algorithms. More...
#include <data_structures.h>
Public Member Functions | |
UnionFind (size_t n) | |
~UnionFind () | |
size_t | Find (size_t x) |
bool | UnionSet (size_t x, size_t y) |
Public Attributes | |
size_t * | father |
size_t | size |
Union-find data structure, used in various graph algorithms.
tw::UnionFind::UnionFind | ( | size_t | n | ) |
tw::UnionFind::~UnionFind | ( | ) |
size_t tw::UnionFind::Find | ( | size_t | x | ) |
bool tw::UnionFind::UnionSet | ( | size_t | x, |
size_t | y | ||
) |
size_t* tw::UnionFind::father |
size_t tw::UnionFind::size |