結果 : why prim's algorithm is used