9 template <
typename V>
using edge_for = std::pair<V*, V*>;
14 namespace comparators {
17 constexpr bool operator()(
const Vertex* a,
const Vertex* b)
const {
24 constexpr bool operator()(
const Vertex* a,
const Vertex* b)
const {
33 using edge = std::pair<Vertex*, Vertex*>;
34 using const_edge = std::pair<const Vertex*, const Vertex*>;
49 constexpr inline std::size_t
hash_combine(std::size_t a, std::size_t b) {
52 return a ^ (b + 0x9E3779B9 + (a << 6) + (a >> 2));
59 return std::hash<Vertex*>{}(a);
66 return std::hash<Vertex>{}(*a);
74 using edge = std::pair<Vertex*, Vertex*>;
75 using const_edge = std::pair<const Vertex*, const Vertex*>;
89 template <
typename T,
typename Vertex,
typename Edge = detail::edge_for<Vertex>>
concept graph_compare_traits =
requires {
std::pair< V *, V * > edge_for
constexpr std::size_t hash_combine(std::size_t a, std::size_t b)
constexpr bool operator()(const edge &a, const edge &b) const
constexpr bool operator()(const const_edge &a, const const_edge &b) const
VertexCmp vertex_comparator
std::pair< const Vertex *, const Vertex * > const_edge
std::pair< Vertex *, Vertex * > edge
constexpr bool operator()(const Vertex *a, const Vertex *b) const
constexpr bool operator()(const Vertex *a, const Vertex *b) const
constexpr bool operator()(const edge &a) const
std::pair< const Vertex *, const Vertex * > const_edge
std::pair< Vertex *, Vertex * > edge
constexpr bool operator()(const const_edge &a) const
constexpr bool operator()(const Vertex *a) const
constexpr bool operator()(const Vertex *a) const