data_structures
Functions
union_find_find.c File Reference
#include "union_find.h"
+ Include dependency graph for union_find_find.c:

Go to the source code of this file.

Functions

size_t union_find_find (const t_union_find *uf, size_t p)
 Returns the canonical element of the set containing the specified element. More...
 

Function Documentation

◆ union_find_find()

size_t union_find_find ( const t_union_find uf,
size_t  p 
)

Returns the canonical element of the set containing the specified element.

Parameters
pAn element
Returns
The canonical element of the set containing the specified element

Definition at line 16 of file union_find_find.c.