Boost logo

Boost Users :

Subject: Re: [Boost-users] read_graphviz with a simple graph
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2011-06-23 21:23:31


On Thu, 23 Jun 2011, David Doria wrote:

>> Try:
>>
>> std::string s;
>> ... boost::static_property_map<std::string>(s) ...
>>
>> -- Jeremiah Willcock
>
> std::string s;
> dp.property("node_id", boost::static_property_map<std::string>(s));
>
> produces:
>
> invalid use of void expression.
>
> Before I was just whining that I had to change the adjacency_list
> template parameters, but now it seems like the vertices that are raed
> in using the first method (the one that was working) does not keep the
> correct numbers/ids associated with the vertices. I have an example of
> that behavior, but I feel like it might be fixed when we get this way
> working.

Did you need the vertex IDs from the Graphviz file? If so, you will need
a "real" property map as node_id (either internal to the graph or an
external one).

-- 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