Boost logo

Boost Users :

From: Jeffrey Holle (jeffreyholle_at_[hidden])
Date: 2006-12-07 14:15:14


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::map<std::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....


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