結果 : write prim's algorithm for minimum cost spanning tree