Use linear programming on max network flow