From bdc5798eed269875618ccdef1170d2dae7ce48b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 4 Nov 2023 18:55:12 +0100 Subject: [PATCH] call matching algorithm in main method --- example.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example.cpp b/example.cpp index ca64077..07bb12a 100644 --- a/example.cpp +++ b/example.cpp @@ -2,6 +2,7 @@ #include // For reading input files. #include "graph.hpp" +#include "edmonds.h" int main(int argc, char** argv) { @@ -29,7 +30,10 @@ int main(int argc, char** argv) } } } - std::cout << greedy_matching_as_graph; + + // Now, calculate the matching + ED::Graph optimum_matching = Edmonds::maximum_matching(greedy_matching_as_graph); + std::cout << optimum_matching; return EXIT_SUCCESS; }