24 Jun
2008
24 Jun
'08
12:15 a.m.
Abde Ali Kagalwalla wrote:
I just started using the graph library..... I want to store a class I created called bbox as vertices of a graph. So, I just used the bundled properties mentioned as mentioned in the documentation.
So here is a relevant portion of the code:
vector<bbox> A;
boost::adjacency_list
G; for (int i=0; i
But bbox is not accepted as a valid vertex_descriptor for add_edge function.
Right, your graph's vertex descriptor type is
boost::graph_traits<
adjacency_list
::vertex_descriptor
which is almost certainly something like an int or a std::size_t -- Dave Abrahams BoostPro Computing http://www.boostpro.com