Boost logo

Boost Users :

Subject: Re: [Boost-users] BGL: Write graphviz file with invisible edges
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-06-21 14:46:15


On Tue, 21 Jun 2011, David Doria wrote:

>>> boost::write_graphviz_dp(std::cout, g, dp, "style");
>>
>> The last argument here shouldn't be "style" -- it should be the default
>> "node_id" or something else that can be used to identify vertices in the
>> graph.
>>
>>> return 0;
>>> }
>>>
>>> However, I get an exception "dynamic property get cannot retrieve
>>> value for property: style."
>>
>> I'm not sure what the issue is for that -- try changing the call to
>> write_graphviz_dp and see if it recurs.
>>
>> -- Jeremiah Willcock
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
> I tried both:
> boost::write_graphviz_dp(std::cout, g, dp, "node_id");
> and
> boost::write_graphviz_dp(std::cout, g, dp);
>
> and both produce the exception "dynamic property cannot retrieve value
> for property: "node_id".

You will also need dp.property("node_id", get(vertex_index, g)); before
the write_graphviz_dp call.

-- Jeremiah Willcock


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