Click kruskal.cpp link to view the file.