Ok. I prefer functions that return only one thing, but in this case I think it makes sense to return both the flow_value and the flow_dict/minimum cut so users do not have to compute the value from the dict/cut.