Hi,
This works but then I am just storing int objects as vertices of the graph. I want to store bbox objects as vertices of the graph.
What should I change in the above code to store bbox objects as vertices of the graph with bundled vertex properties.
Thanks,
Abde Ali
Hi,
Abde Ali Kagalwalla escribió:I think that no.
for(pi = boxVector.begin(); pi!=boxVector.end(); pi++){
for( pj = pi+1 ; pj!=boxVector.end(); pj++){
add_edge(*pi, *pj, G);
}}
Should'nt bbox now be accepted as a valid vertex descriptor by the add_edge function?
Try this one:
on compiling this, I get that "no matching function for add_edge<bbox&, bbox&,adjacency_list<vecS, vecS, undirectedS, bbox> >"
So, how should I implement this to get bbox as a bundled vertex property?
for(size_t i = 0; i < boxVector.size(); ++i){
for( size_t j = i + 1 ; i < boxVector.size(); ++j){
add_edge(i, j, G);
}}
Good luck,
Thanks
Abde Ali
Dmitry
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users