call matching algorithm in main method
This commit is contained in:
parent
0131c31c74
commit
bdc5798eed
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include <fstream> // For reading input files.
|
#include <fstream> // For reading input files.
|
||||||
|
|
||||||
#include "graph.hpp"
|
#include "graph.hpp"
|
||||||
|
#include "edmonds.h"
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
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;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue