Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
Graphle Test Data Structures

Classes

struct  std::hash< T >
 
struct  graphle::test::ve_list_graph
 
struct  graphle::test::ve_map_graph
 
struct  graphle::test::out_edge_graph
 
struct  graphle::test::v_list_out_edge_graph
 
struct  graphle::test::in_out_edge_graph
 
struct  graphle::test::v_list_in_out_edge_graph
 

Typedefs

using graphle::test::datastructure_list = meta::type_list< ve_list_graph, ve_map_graph, out_edge_graph, v_list_out_edge_graph, in_out_edge_graph, v_list_in_out_edge_graph >
 

Functions

template<typename T >
requires requires (T v) { v.vertex_id; }
constexpr bool graphle::test::operator== (const T &a, const T &b)
 
 graphle::test::GRAPHLE_MAKE_NIEBLOID (to_vertex, [](const auto &v) { return V { v.vertex_id };}, typename V)
 
 graphle::test::GRAPHLE_MAKE_NIEBLOID (to_edge,([](const auto &e) { return std::pair { to_vertex< V >(e.first), to_vertex< V >(e.second) };}), typename V)
 

Detailed Description

Todo:
Add datastructures for non-directed graphs.

Typedef Documentation

◆ datastructure_list

List of test datastructure types.

Definition at line 317 of file test_datastructures.hpp.

Function Documentation

◆ GRAPHLE_MAKE_NIEBLOID() [1/2]

graphle::test::GRAPHLE_MAKE_NIEBLOID ( to_edge  ,
([](const auto &e) { return std::pair { to_vertex< V >(e.first), to_vertex< V >(e.second) };})  ,
typename V   
)

Conversion between different graph edge types.

◆ GRAPHLE_MAKE_NIEBLOID() [2/2]

graphle::test::GRAPHLE_MAKE_NIEBLOID ( to_vertex  ,
[] (const auto &v) { return V { v.vertex_id };}  ,
typename V   
)

Conversion between different graph vertex types.

◆ operator==()

template<typename T >
requires requires (T v) { v.vertex_id; }
constexpr bool graphle::test::operator== ( const T &  a,
const T &  b 
)
constexpr

Equality for test data vertices.

Definition at line 36 of file test_datastructures.hpp.