MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / Union

Function Union

data_structures/disjoint_set.cpp:78–90  ·  view source on GitHub ↗

* * Union operation combines two disjoint sets to make a single set * in this union function we pass two elements and check if they are * from different sets then combine those sets * @param x element of some set * @param y element of some set * */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 1

FindFunction · 0.85

Tested by

no test coverage detected