27 # ifndef TPL_TEST_CONNECTIVITY_H 28 # define TPL_TEST_CONNECTIVITY_H 30 # include <tpl_graph_utils.H> 53 template <
class GT,
class SA = Dft_Show_Arc<GT> >
73 throw std::domain_error(
"test_connectivity() does not work on digraphs");
75 if (g.get_num_arcs() < g.get_num_nodes() - 1)
80 return traversal(g) == g.get_num_nodes();
98 throw std::domain_error(
"test_connectivity() does not work on digraphs");
100 if (g.get_num_arcs() < g.get_num_nodes() - 1)
105 return traversal(g) == g.get_num_nodes();
111 # endif // TPL_TEST_CONNECTIVITY_H Definition: tpl_graph_utils.H:138
Definition: tpl_test_connectivity.H:54
bool operator()(GT &g, SA &&sa=SA()) const
Definition: tpl_test_connectivity.H:70