add function Graph->changeEdgeCost()