call matching algorithm in main method

This commit is contained in:
Maximilian Keßler 2023-11-04 18:55:12 +01:00
parent 0131c31c74
commit bdc5798eed
Signed by: max
GPG Key ID: BCC5A619923C0BA5

View File

@ -2,6 +2,7 @@
#include <fstream> // 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;
}