70. Let G be a graph with weights assigned to each edge. Consider the following algorithm:
If in the new graph two or more edges join a pair of vertices, delete all but the cheapest. Continue to call the new vertex V.
(d) Repeat steps (b) and (c) until a single point is obtained. The edges selected in the course of this algorithm (called Prim’s algorithm) form a minimum-cost spanning tree. Apply this algorithm to the accompanying graphs.