[BGL] How to change the type of vertex_descriptor??
Hi, I have a BGL graph in the following manner:
typedef adjacency_list < vecS, vecS, directedS,
no_property,
property
Hi Erik, On Mon, 22 Jul 2002, Erik Arner wrote: yg-boo> yg-boo> Now, the default vertex_descriptor seems to be unsigned int. How yg-boo> do I change this to int? Also, where (in which file) is the yg-boo> default set? You can't change the type of the vertex_descriptor. You really should not even care what the type is, think of it as an opaque handle. If you need to associate an int with every vertex, add an internal vertex property. yg-boo> On another note: the online reference manual is pretty good in my yg-boo> opinion, but it's hard to get a real overview of the contents. It yg-boo> also lacks an index, making it hard to look up questions like the yg-boo> one above. Is the book any better in this respect? Any other yg-boo> references worth looking up - books or webpages? Yes, buy my book! :) http://www.awprofessional.com/catalog/product.asp?product_id={B7B10FCE-2354-4A3E-8792-FCFCECDB355D} http://www.amazon.com/exec/obidos/ASIN/0201729148/qid%3D1027613921/sr%3D11-1... Cheers, Jeremy ---------------------------------------------------------------------- Jeremy Siek http://php.indiana.edu/~jsiek/ Ph.D. Student, Indiana Univ. B'ton email: jsiek@osl.iu.edu C++ Booster (http://www.boost.org) office phone: (812) 855-3608 ----------------------------------------------------------------------
Hi Erik, On Fri, 26 Jul 2002, Erik Arner wrote: yg-boo> Jeremy Siek wrote: yg-boo> > yg-boo> > Yes, buy my book! :) yg-boo> yg-boo> I just might... :-) yg-boo> yg-boo> Are there any major differences between the book and the online yg-boo> manual? The BGL book has much more tutorial material and applications of the BGL algorithms to real-world problems. Also the reference section is a bit more polished. Cheers, Jeremy ---------------------------------------------------------------------- Jeremy Siek http://php.indiana.edu/~jsiek/ Ph.D. Student, Indiana Univ. B'ton email: jsiek@osl.iu.edu C++ Booster (http://www.boost.org) office phone: (812) 855-3608 ----------------------------------------------------------------------
Is the book any better in this respect?
Yes - the book is a very useful tutorial and it's an essential desktop
reference.
"Erik Arner"
Hi, I have a BGL graph in the following manner:
typedef adjacency_list < vecS, vecS, directedS, no_property, property
> > Graph; I also have:
typedef graph_traits<Graph>::vertex_descriptor Vertex;
Now, the default vertex_descriptor seems to be unsigned int. How do I change this to int? Also, where (in which file) is the default set?
On another note: the online reference manual is pretty good in my opinion, but it's hard to get a real overview of the contents. It also lacks an index, making it hard to look up questions like the one above. Is the book any better in this respect? Any other references worth looking up - books or webpages?
Thanks, Erik
participants (3)
-
Chris Russell
-
Erik Arner
-
Jeremy Siek