is it possible to fix the type of the vertices in a boost::undirected_graph
such to be, e.g., 'int'?
The 'int' vertex type seems to be the default with the boost::adjacency_list
, and the following code works:
boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS> g;
boost::add_edge(0 , 1 , g);
but fails with an undirected_graph. What additional steps should I do to use the same syntax for adding vertices to an undirected_graph?
I need to use a bron_kerbosch_all_cliques
algorithm which only accepts undirected_graph as input.
thanks