Boost logo

Boost Users :

From: Dmitry (dmitry_at_[hidden])
Date: 2008-06-24 15:49:08


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&,
> bbox&,adjacency_list<vecS, vecS, undirectedS, bbox> >"
> 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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net