Re: [Boost-users] [BGL] read_graphviz

I don't see the way you read graph property??
"Jeffrey Holle"
Jeffrey Holle schrieb:
Since no one replied to this message, I'll answer it myself. Yes, to both questions! This is the code that demonstrates:
There are obviously includes missing in there.

Dmitry wrote:
I don't see the way you read graph property??
If you mean a graph as opposed to a vertex or edge property, my dot file presently doesn't have one, hence my code doesn't have a property for it. I think the way to do this for an external resource is to: typedef std::mapstd::string,std::string StringToString; StringToString graphText; associative_property_map<Cost> graphTextProperty(graphText); ... dp.property("orientation", graphTextProperty) You need one of the latter for each graph property type present in your graph. The first parameter is the property name. read_graphviz throws an exception if it encounters a property that doesn't have a "place" in the passed dynamic_properties object. Note that I haven't tried this....

Hi Dmitry, On Dec 7, 2006, at 10:33 AM, Dmitry wrote:
I don't see the way you read graph property??
Support for reading graph properties is a recent addition to read_graphviz. The documentation in CVS for read_graphviz shows an example of reading a graph property: http://boost.cvs.sourceforge.net/*checkout*/boost/boost/libs/graph/ doc/read_graphviz.html
participants (3)
-
Dmitry
-
Jeffrey Holle
-
Ronald Garcia