Boost logo

Boost Users :

Subject: Re: [Boost-users] read_graphviz with a simple graph
From: David Doria (daviddoria_at_[hidden])
Date: 2011-06-23 17:36:36


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

David


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