Hi Juerg,
It sounds like you want std::pair to be an internal property
attached to vertices of the graph. Check out the vertex-name-property.cpp
example file.
Cheers,
Jeremy
On Mon, 28 Oct 2002, Juerg Tschirren wrote:
yg-boo>
yg-boo> In the Boost Graph Library, is it possible to have a
yg-boo> custom-defined type for vertices, e.g., I would like to have
yg-boo>
yg-boo> boost::graph_traits<Graph>::vertex_descriptor
yg-boo>
yg-boo> map to
yg-boo>
yg-boo> std::pair
yg-boo>
yg-boo> Can this be done? If yes, how?
yg-boo>
yg-boo> Juerg
yg-boo>
yg-boo>
yg-boo>
yg-boo>
yg-boo>
yg-boo> Info: http://www.boost.org
yg-boo> Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl
yg-boo> Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
yg-boo>
yg-boo>
yg-boo> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
yg-boo>
yg-boo>
----------------------------------------------------------------------
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
----------------------------------------------------------------------