#include #include #include #include #include #include #include #include #include #include #include // METIS Input #include #include //#include #ifdef BOOST_NO_EXCEPTIONS void boost::throw_exception(std::exception const& ex) { std::cout << ex.what() << std::endl; abort(); } #endif using namespace boost; using boost::graph::distributed::mpi_process_group; int main(int argc, char* argv[]) { mpi::environment env(argc, argv); typedef adjacency_list, undirectedS, property, property > Graph; const char* filename = argv[1]; // Open the METIS input file std::ifstream in(filename); graph::metis_reader reader(in); /* const char* partitions_file = argv[2]; mpi_process_group pg; std::ifstream in_partitions(partitions_file); boost::graph::metis_distribution dist(in_partitions, pg); */ // Load the graph using the default distribution Graph g(reader.begin(), reader.end(), reader.weight_begin(), reader.num_vertices()/*, pg, dist*/); // Test Betweenness Centrality brandes_betweenness_centrality(g, centrality_map(get(vertex_centrality,g))); return 0; }