結果 : steps of prim's algorithm