結果 : space complexity of prim's algorithm