結果 : why we use prim's algorithm