Здравствуйте, Аноним
так компилится
typedef adjacency_list < listS, vecS, undirectedS, BallsGraph::VERTEX, BallsGraph::EDGE > GraphType;
typedef graph_traits< GraphType >::vertex_descriptor vertex_desc;
typedef graph_traits< GraphType >::vertices_size_type vertices_size_type;
typedef std::map<vertex_desc, vertices_size_type> ComponentMap;
GraphType G(6);
ComponentMap comp_map;
std::vector<int> component(num_vertices(G));
associative_property_map<ComponentMap> ass_map = make_assoc_property_map(comp_map);
int com_count = connected_components(G, ass_map);
а если заменить первую строку на
typedef adjacency_list < listS, listS, undirectedS, BallsGraph::VERTEX, BallsGraph::EDGE > GraphType;
то есть вторым параметром поставить listS
ошибка
error C2679: binary '+' : no operator found which takes a right-hand operand of type 'const boost::detail::error_property_not_found' (or there is no acceptable conversion)
ключевой момент видимо error_property_not_found