Hi Dave,<br><br>It is still not clear.<br>What should my parameters be for the function add_edge() to construct the graph with bbox objects as edges?<br><br>Thanks,<br><br>Abde Ali<br><br><div class="gmail_quote">On Tue, Jun 24, 2008 at 5:45 AM, David Abrahams <<a href="mailto:dave@boostpro.com">dave@boostpro.com</a>> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Abde Ali Kagalwalla wrote:<br> > I just started using the graph library.....<br> > I want to store a class I created called bbox as vertices of a graph.<br> > So, I just used the bundled properties mentioned as mentioned in the<br> > documentation.<br> ><br> > So here is a relevant portion of the code:<br> ><br> > vector<bbox> A;<br> ><br> > boost::adjacency_list<vecS, vecS, undirectedS, bbox> G;<br> ><br> > for (int i=0; i<A.size(); i++){<br> > for(int j=i+1; j<A.size();j++{<br> > add_edge(A[i], A[j], G);<br> > }}<br> ><br> ><br> ><br> > But bbox is not accepted as a valid vertex_descriptor for add_edge<br> > function.<br> <br> </div>Right, your graph's vertex descriptor type is<br> <br> boost::graph_traits<<br> <div class="Ih2E3d"> adjacency_list<vecS, vecS, undirectedS, bbox><br> </div> >::vertex_descriptor<br> <br> which is almost certainly something like an int or a std::size_t<br> <font color="#888888"><br> --<br> Dave Abrahams<br> BoostPro Computing<br> <a href="http://www.boostpro.com" target="_blank">http://www.boostpro.com</a><br> _______________________________________________<br> Boost-users mailing list<br> <a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br> <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br> </font></blockquote></div><br>