結果 : spanning tree using prim's algorithm