Boost Users :
From: AJ (ajames_at_[hidden])
Date: 2003-12-12 20:58:26
I have read the documentation and hve seen that there is an add_vertex
method that allows a vertex to be added at the same time that a vertex
property is set. Unfortunately the docs do not make it clear to me
exactly what type I'm supposed to pass as the vertex property.
If I have code like the following where I get a vertex property map from
a graph, add the vertex, and then set the property:
member_names_t member_names = boost::get(boost::vertex_name_t(),
member_vertex_t vertex = boost::add_vertex(__graph);
boost::put(member_names, vertex, name);
How can I edit this code to using the add_vertex call from the
// how to express vp?
member_vertex_t vertex = boost::add_vertex(vp, __graph);
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