MinCostMaxFlow_java change