結果 : prim's algorithm with adjacency matrix