|
Boost Users : |
From: Abde Ali Kagalwalla (abdeali.iitb_at_[hidden])
Date: 2008-06-24 18:27:27
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 <dmitry_at_[hidden]> wrote:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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