small fixes to max-flow
removed read dimacs (not needed yet)