結果 : prim's algorithm matrix method