結果 : write down the prim's algorithm for finding minimum spanning tree