結果 : is prim's algorithm greedy