|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Union-find over the nodes 0 .. n - 1. More...
#include <graph_oracles.H>
Public Member Functions | |
| Union_Find (int n) | |
| int | find (int x) |
| bool | join (int a, int b) |
| Joins the sets of a and b; false if they were the same set. | |
Public Attributes | |
| std::vector< int > | parent |
Union-find over the nodes 0 .. n - 1.
Definition at line 61 of file graph_oracles.H.
|
inlineexplicit |
Definition at line 65 of file graph_oracles.H.
References parent.
|
inline |
Definition at line 70 of file graph_oracles.H.
References parent.
Referenced by graph_oracles::component_of(), graph_oracles::euler_class(), and join().
|
inline |
Joins the sets of a and b; false if they were the same set.
Definition at line 78 of file graph_oracles.H.
References find(), and parent.
Referenced by graph_oracles::component_of(), graph_oracles::euler_class(), graph_oracles::has_cycle(), and graph_oracles::min_spanning_forest_weight().
| std::vector<int> graph_oracles::Union_Find::parent |
Definition at line 63 of file graph_oracles.H.
Referenced by Union_Find(), find(), and join().