|
Boost Users : |
Subject: [Boost-users] [Boost.Graph]: read_graphviz into std::vector
From: Sascha Winter (swinter_at_[hidden])
Date: 2009-06-05 14:09:10
Hi,
I have graphes in the .dot format, with 24 vertex labels d1-d24, each
storing one double.
I want to use
struct Vertex_p
{
std::string node_id;
std::vector<double> d;
}
as the bundled property for my graph in boost and use read_graphviz to
load the graph. How do I have to construct the property_map and the
dynamic_properties?
This
property_map<graph_t, vector<double> Vertex_p::*>::type g_d = get(&Vertex_p::d, graph);
g_dp.property("d",g_d);
does not work. Is it even possible to do something like this?
Thanks for any help,
Sascha
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