結果 : prim's algorithm will work with negative edge weights