17 #include <boost/graph/depth_first_search.hpp>
18 #include <type_traits>
27 template<
typename Callback>
36 template<
typename Graph>
37 void back_edge(
typename Graph::edge_descriptor edge, Graph&)
39 static_assert(std::is_invocable_v<Callback, typename Graph::edge_descriptor>);
A helper for boost::depth_first_search (DFS) usage with the purpose of detecting cycles.
back_edge_detector(Callback callback)
void back_edge(typename Graph::edge_descriptor edge, Graph &)