19 Jul
2019
19 Jul
'19
2:06 p.m.
//not working depth_first_search(ee_archi, vis, boost::make_assoc_property_map(vis.vertex_coloring),0);
The visitor is passed to depth_first_search by value, and hence a copy of vis is made and you are then working on two colormaps.
You need to change your visitor to have reference semantics so that a copy of the visitor still points to the same color_map.
This should work:
struct my_vis : default_dfs_visitor {
using colormap = boost::associative_property_map