24 Jun
2008
24 Jun
'08
7:49 p.m.
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
>" 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