39# ifndef TPL_TEST_CONNECTIVITY_H
40# define TPL_TEST_CONNECTIVITY_H
66 template <
class GT,
class SA = Dft_Show_Arc<GT> >
85 <<
"test_connectivity() does not work on digraphs";
109 <<
"test_connectivity() does not work on digraphs";
Exception handling system with formatted messages for Aleph-w.
#define ah_domain_error_if(C)
Throws std::domain_error if condition holds.
constexpr size_t get_num_nodes() const noexcept
Return the total of nodes of graph.
bool is_digraph() const noexcept
Return true if the graph this is directed.
constexpr size_t get_num_arcs() const noexcept
Determines if a graph g is connected.
bool operator()(GT &g, SA &&sa=SA()) const
Invokes the connectivity test.
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
Utility algorithms and operations for graphs.