結果 : construct minimum spanning tree using prim's algorithm