Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2032: write_graphviz VertexList problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-03 13:30:46
#2032: write_graphviz VertexList problem
---------------------------------------------+------------------------------
Reporter: tim blechmann <tim@â¦> | Owner: dgregor
Type: Bugs | Status: closed
Milestone: Boost 1.36.0 | Component: graph
Version: Boost 1.35.0 | Severity: Problem
Resolution: invalid | Keywords:
---------------------------------------------+------------------------------
Comment (by jleandro@â¦):
So, HOW to "pass a vertex index property map" into write_graphviz? Does
anyone has a snippet code to show it? I'm failing on trying different
syntaxes, such as:
typedef boost::property_map<Graph, boost::vertex_index_t>::type IndexMap;
IndexMap node_index = get(boost::vertex_index, g);
boost::write_graphviz(dotfile, g, OurVertexPropertyWriter(node_name),
boost::default_writer(), boost::default_writer(),
get(boost::vertex_index,g));
OR
boost::write_graphviz(dotfile, g, OurVertexPropertyWriter(node_name),
boost::default_writer(), boost::default_writer(), node_index);
OR
boost::write_graphviz(dotfile, g, OurVertexPropertyWriter(node_name),
boost::default_writer(), boost::default_writer(),
make_iterator_property_map(intIndex.begin(), get(boost::vertex_index, g),
intIndex[0]));
I'd appreciate any piece of code on that.
Thanks.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2032#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC