From c6974f156dd9f33b30bcefcd4752a0a51273dd74 Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Sun, 22 Oct 2017 12:36:53 +0200 Subject: Removing constant from matching code. --- graph/maxCarBiMatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graph/maxCarBiMatch.cpp') diff --git a/graph/maxCarBiMatch.cpp b/graph/maxCarBiMatch.cpp index e538a19..24aebef 100644 --- a/graph/maxCarBiMatch.cpp +++ b/graph/maxCarBiMatch.cpp @@ -14,7 +14,7 @@ bool dfs(int v) { } int kuhn(int n) { // n = #Knoten links. - pairs.assign(NUM_VERTICES, -1); + pairs.assign(adjlist.size(), -1); int ans = 0; // Greedy Matching. Optionale Beschleunigung. for (int i = 0; i < n; i++) for (auto w : adjlist[i]) -- cgit v1.2.3