An error occurred while loading the file. Please try again.
-
Florian Heinrichs authored06d89afc
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Forked from
Julian Scherzer / psco-2019-gp
125 commits behind the upstream repository.
main.cpp 523 B
#include <iostream>
#include <gp-bnb/bnb.hpp>
#include <gp-bnb/graph.hpp>
#include <gp-bnb/partition.hpp>
#include <gp-bnb/metis_reader.hpp>
int main(int argc, char** argv) {
std::string graphFile = argv[1];
auto g = metis_reader().read(graphFile);
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;
}
*/
}