I am trying to use boost::dynamic properties to multiple properties to the Graphviz output.
I am familiar with custom property writer (How to print a graph in graphviz with multiple properties displayed), but I am trying to do the same thing with dynamic properties. How do we write the above edge property writer using the dynamic properties in the following code? I want to write if else statements on the values of the weight and capacity as in if(weight <5 && capacity <5) then color = red and so on.
boost::dynamic_properties dp/*(ignore_other_properties)*/;
dp.property("node_id", get(&vert::name, g));
dp.property("color", get(??,g));
write_graphviz_dp(std::cout, g, dp);