Skip to content
Snippets Groups Projects
Commit 06d89afc authored by Florian Heinrichs's avatar Florian Heinrichs
Browse files

command line argument as file path now

parent 9ea2fb22
No related merge requests found
......@@ -6,12 +6,24 @@
#include <gp-bnb/partition.hpp>
#include <gp-bnb/metis_reader.hpp>
int main() {
int main(int argc, char** argv) {
// MetisReader example
std::string graphFile = "../test/inputs/delaunay_n10.graph";
std::string graphFile = argv[1];
auto g = metis_reader().read(graphFile);
std::cout << "Number of nodes: " << g.num_nodes() << std::endl;
std::cerr << "Number of nodes: " << g.num_nodes() << std::endl;
auto sol = gp_bnb::solver(g);
sol.solve();
/*
int i = 1;
for(auto g : sol.best_solution()){
std::cerr << i++ << ": " << g << std::endl;
}
*/
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment