You can find the codes we've went over in the two CLion project folders; DisjSets and Kruskal.
The PDF visualization of a Disjoint Sets data structure running that we've covered is in the Disjoint Sets Visualization folder. The folder also has the .tex file inside, for the curious.