#include <Vec.h>
Inherits Vec< int >.
Public Member Functions | |
void | size (int n) |
int | find (int n) |
void | unify (int n, int m) |
Definition at line 151 of file Vec.h.
int UnionFind::find | ( | int | n | ) |
Definition at line 179 of file Vec.cc.
References Vec< int >::i, and Vec< int >::v.
Referenced by unify().
void UnionFind::size | ( | int | n | ) |
Definition at line 171 of file Vec.cc.
References Vec< int >::fill(), Vec< int >::i, Vec< int >::n, and Vec< int >::v.
void UnionFind::unify | ( | int | n, | |
int | m | |||
) |
Definition at line 191 of file Vec.cc.
References find(), and Vec< int >::v.