Prim, Kruskal Why? only undirected graph?
Last updated
Last updated
This time the only possible MSA is . Prim’s algorithm starts at a random node, in this case, . It then takes the edge with the lowest edge connected to , which is the node to :
Since the edge, is not contained in the only MSA that the following steps won’t generate an MSA for this example.