I am trying to construct a prim\'s algorithm on python, where it outputs the cost of the minimum spanning tree, as well as the edges in the tree.
The edges needs to b