Redirecting to Minimum cost flow problem