Store maximum flow value in 'flow_value' attribute of residual networks