Using the Swing GUI toolkit, this program implements Kruskal’s algorithm to calculate the minimum spanning tree (MST) of a graph.