Introduce flow_network to solver