diff --git a/src/edmonds.cpp b/src/edmonds.cpp index d5a8073..6918b43 100644 --- a/src/edmonds.cpp +++ b/src/edmonds.cpp @@ -178,7 +178,7 @@ void maximum_matching_from_initial_matching(Graph & graph) } if (graph.rho(y_path.front()) != blossom_root_id) { - graph.node(x_path.front()).phi = x_path.front(); + graph.node(y_path.front()).phi = x_path.front(); } // Update root indices