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

Go to the source code of this file.

Functions

void union_find_union (t_union_find *uf, size_t p, size_t q)
 Merges the set containing element p with the set containing element q. More...
 

Function Documentation

◆ union_find_union()

void union_find_union ( t_union_find uf,
size_t  p,
size_t  q 
)

Merges the set containing element p with the set containing element q.

Parameters
pon element
qthe other element

Definition at line 16 of file union_find_union.c.