結果 : prim's algorithm program in cpp