Escape flow and extended network-flow to cover repeated edges.