Graph dev mincostflow