Minimal cost flows in regular matroids