Prim’s Algorithm
An algorithm for finding a minimum spanning tree.
- Begin by choosing any edge with smallest weight, putting it into the spanning tree.
- Successively add to the tree edges of minimum weight that are incident to a vertex already in the tree, never forming a simple circuit with those edges already in the tree.
- Stop when n − 1 edges have been added.
I know that you must start at node A. Also by giving a list of the order in which nodes and/or edges are added.
But im not sure on the exact steps to find the minimum weight spanning tree.