Boost logo

Boost Users :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-10-29 09:49:24


Hi Juerg,

It sounds like you want std::pair<int,int> 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<int,int>
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_at_[hidden]>
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_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


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