diff --git a/bnb/main.cpp b/bnb/main.cpp index e6cb7df90f6471a313cf9e5f6b88faac9420d69a..0870d5f99b044b70cdd7918d4e76343572ad8362 100755 --- a/bnb/main.cpp +++ b/bnb/main.cpp @@ -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; + + } + */ + }