結果 : does prim's algorithm work with negative weights