Java project implementing Kruskal's algorithm and Prim's algorithm to find a minimum spanning tree for a connected weighted graph