When the weights are all different, the minimum spanning tree is unique. So, in this case, yes. In the general case, it depends on how you break ties.
Try Prim's algorithm on the vertices and edges of a square to see what happens with ties.
When the weights are all different, the minimum spanning tree is unique. So, in this case, yes. In the general case, it depends on how you break ties.
Try Prim's algorithm on the vertices and edges of a square to see what happens with ties.