結果 : write ac program to implement prim's algorithm for suitable example