Stop boost::depth_first_search along a particular depth if certain criteria is met
I'm using BGL to store my DAG. Vertices have states. Given a change in state in one of the vertices i want to update dependent vertices. This i'm able to do using boost::depth_first_search and a custom visitor. Now the logic is that i dont want to update a searched vertex and its dependent if the vertex is in a particular state. Basically i want to control over en-queuing of vertices in either dfs or bfs. What is the best way to achieve this in BGL. Thanks. It seems that boost::depth_first_search does not support this, but the underlying boost::depth_first_visit does, through its 2nd overload