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
On Tue, Jun 24, 2008 at 12:49 PM, Dmitry
Hi,
Abde Ali Kagalwalla escribió:
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?
I think that no.
on compiling this, I get that "no matching function for add_edge
bbox&,adjacency_list
>" So, how should I implement this to get bbox as a bundled vertex property? Try this one:
for(size_t i = 0; i < boxVector.size(); ++i){
for( size_t j = i + 1 ; i < boxVector.size(); ++j){
add_edge(i, j, G); }}
Thanks
Abde Ali
Good luck,
Dmitry
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users