Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost][BGL] Dynamic Property, dynamic_get_failure.
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-04-26 20:12:13

On Wed, 27 Apr 2011, Mathieu - wrote:

> On 27 April 2011 00:15, Jeremiah Willcock <jewillco_at_[hidden]> wrote:
>> You are passing "weight" as the node_id parameter to write_graphviz_dp, but
>> what you have defined as "weight" in dp is an edge property, not a vertex
>> property.
> Ah yes, I didn't pay enough attention I guess!
>> I think removing the last argument to write_graphviz_dp should
>> fix the problem.
> Well, it still throws because it can't retrieve the value for the
> default value ("node_id") either

You will need something like"node_id",
get(boost::vertex_index, g)) to enable that.

-- Jeremiah Willcock

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at