AFM.AQR.7.6: Use Kruskal’s algorithm and Prim’s algorithm to determine the minimal spanning tree of a weighted graph.