Update Minimum Cost (maximum) Flow