1 # ifndef TPL_TEST_CONNECTIVITY_H
2 # define TPL_TEST_CONNECTIVITY_H
4 # include <tpl_graph_utils.H>
27 template <
class GT,
class SA = Dft_Show_Arc<GT> >
47 throw std::domain_error(
"test_connectivity() does not work on digraphs");
49 if (g.get_num_arcs() < g.get_num_nodes() - 1)
54 return traversal(g) == g.get_num_nodes();
72 throw std::domain_error(
"test_connectivity() does not work on digraphs");
74 if (g.get_num_arcs() < g.get_num_nodes() - 1)
79 return traversal(g) == g.get_num_nodes();
85 # endif // TPL_TEST_CONNECTIVITY_H
Definition: tpl_graph_utils.H:195
Definition: tpl_test_connectivity.H:28
bool operator()(GT &g, SA &&sa=SA()) const
Definition: tpl_test_connectivity.H:44