Added flow return variable to max-flow solvers