I mean I want to implement prim algorithm which create a most efficient tree from a graph that has the least weight and it cover all the vectors of the graph. please guide me to implement it.
How to implement PRIM algorithm in c++?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 5, 2015, 12:11 AM EDT
http://www.geeksforgeeks.org/greedy-algorithms-set-5-prims-minimum-spanning-tree-mst-2/
Joe WilsonRank #631 · 3.8K reputationPosted May 5, 2015, 9:27 AM EDT