44 meta::value_wrapper_of<bool> IsDirected = std::true_type,
45 maybe_vertex_getter<Vertex> GetVertices = meta::none,
46 maybe_edge_getter<Vertex> GetEdges = meta::none,
47 maybe_vertex_edge_getter<Vertex> GetOutEdges = meta::none,
48 maybe_vertex_edge_getter<Vertex> GetInEdges = meta::none,
49 graph_compare_traits<Vertex> CompareAs = compare_by_address<Vertex>,
50 typename Error =
decltype(detail::graph_constraints_check<Vertex, IsDirected, GetVertices, GetEdges, GetOutEdges, GetInEdges>())
56 constexpr static inline bool is_directed = IsDirected::value;
57 constexpr static inline bool has_vertex_list = !meta::is_none_v<GetVertices>;
58 constexpr static inline bool has_edge_list = !meta::is_none_v<GetEdges>;
59 constexpr static inline bool has_out_edges = !meta::is_none_v<GetOutEdges>;
60 constexpr static inline bool has_in_edges = !meta::is_none_v<GetInEdges>;
86 template <
typename G>
concept graph_type = meta::is_template_v<graph, G>;
91 template <graph_ref G>
using vertex_of =
typename std::remove_cvref_t<G>::vertex_type;
93 template <graph_ref G>
using edge_of =
typename std::remove_cvref_t<G>::edge_type;
95 template <graph_ref G>
using vertex_compare_of =
typename std::remove_cvref_t<G>::vertex_compare_t;
97 template <graph_ref G>
using edge_compare_of =
typename std::remove_cvref_t<G>::edge_compare_t;
99 template <graph_ref G>
using vertex_hash_of =
typename std::remove_cvref_t<G>::vertex_hash_t;
101 template <graph_ref G>
using edge_hash_of =
typename std::remove_cvref_t<G>::edge_hash_t;
105 template <graph_ref G>
constexpr inline bool graph_is_directed = std::remove_cvref_t<G>::is_directed;
113 template <graph_ref G>
constexpr inline bool graph_has_in_edges = std::remove_cvref_t<G>::has_in_edges;
130 template <
typename T>
constexpr static inline bool is_vertex = std::is_pointer_v<T>;
132 template <
typename T>
constexpr static inline bool is_edge = meta::is_template_v<std::pair, T> && is_vertex<typename T::first_type> && is_vertex<typename T::second_type>;
typename std::remove_cvref_t< G >::edge_type edge_of
typename std::remove_cvref_t< G >::edge_hash_t edge_hash_of
constexpr bool graph_has_in_edges
constexpr bool graph_has_edge_list
typename std::remove_cvref_t< G >::vertex_hash_t vertex_hash_of
typename std::remove_cvref_t< G >::vertex_compare_t vertex_compare_of
typename std::remove_cvref_t< G >::edge_compare_t edge_compare_of
constexpr bool graph_is_directed
constexpr bool graph_has_out_edges
typename std::remove_cvref_t< G >::vertex_type vertex_of
constexpr bool graph_has_vertex_list
std::pair< V *, V * > edge_for
meta::deduce_as_t< Vertex > deduce_vertex_type
meta::deduce_as_t< IsDirected > deduce_is_directed
GetVertices get_vertices_t
GetOutEdges get_out_edges
typename CompareAs::vertex_compare vertex_compare_t
typename CompareAs::vertex_hash vertex_hash_t
GetInEdges get_in_edges_t
typename CompareAs::edge_hash edge_hash_t
GetOutEdges get_out_edges_t
typename CompareAs::edge_compare edge_compare_t
detail::edge_for< Vertex > edge_type
meta::deduce_as_t< CompareAs > deduce_compare_as