finish network-flow