63# ifndef AH_GRAPH_CONCEPTS_H
64# define AH_GRAPH_CONCEPTS_H
68# include <type_traits>
74 template <
class BaseGraph>
class Digraph;
76 namespace graph_concepts_detail
85 typename G::Node_Type;
88 requires(
const G & g,
typename G::Arc * a)
90 { g.get_num_nodes() } -> std::convertible_to<std::size_t>;
91 { g.get_num_arcs() } -> std::convertible_to<std::size_t>;
92 { g.get_src_node(a) } -> std::convertible_to<typename G::Node *>;
93 { g.get_tgt_node(a) } -> std::convertible_to<typename G::Node *>;
94 { g.is_digraph() } -> std::convertible_to<bool>;
131 template <
class SN,
class GT>
146 template <
class SA,
class GT>
160 template <
class D,
class GT>
163 requires {
typename D::Distance_Type; }
and
166 { d(a) } -> std::convertible_to<typename D::Distance_Type>;
188 static_cast<graph_concepts_detail::graph_t<GT> *
>(
nullptr)))
::value;
201 requires {
typename graph_concepts_detail::graph_t<Net>::Flow_Type; }
and
205 { net.get_source() } -> std::convertible_to<typename graph_concepts_detail::graph_t<Net>::Node *>;
206 { net.get_sink() } -> std::convertible_to<typename graph_concepts_detail::graph_t<Net>::Node *>;
207 { net.is_single_source() } -> std::convertible_to<bool>;
208 { net.is_single_sink() } -> std::convertible_to<bool>;
209 { a->cap } -> std::convertible_to<typename graph_concepts_detail::graph_t<Net>::Flow_Type>;
210 { a->flow } -> std::convertible_to<typename graph_concepts_detail::graph_t<Net>::Flow_Type>;
C++20 concepts hub: comparison, BST policy, and Aleph container concepts.
size_t size_t int32_t value
Generic directed graph (digraph) wrapper template.
A graph usable by the graph algorithms.
An arc distance (Distance) for graph GT.
An arc filter (SA) for graph GT.
A graph type built with the Digraph template.
A flow network usable by the max-flow and min-cost algorithms.
A node filter (SN) for graph GT.
f(args...) is a valid call whose result is usable as a condition.
Unqualified form of AlephGraph, applied to a cv/ref-free type.
List_Graph< Graph_Node< string >, Graph_Arc< Empty_Class > > G
List_Digraph< Node, Arc > Digraph
std::true_type derives_from_digraph(const volatile Digraph< B > *)
Chosen when a pointer to the graph converts to one to a Digraph<B>, that is, when its type derives fr...
std::remove_cvref_t< GT > graph_t
GT with cv-qualifiers and references removed.
Main namespace for Aleph-w library functions.
and
Check uniqueness with explicit hash + equality functors.