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

Functions

constexpr ve_list_graph graphle::test::make_tree_graph (void)
 
constexpr ve_list_graph graphle::test::make_dag_graph (void)
 
constexpr ve_list_graph graphle::test::make_cyclic_graph (void)
 
constexpr ve_list_graph graphle::test::make_linear_graph (void)
 
constexpr ve_list_graph graphle::test::make_bidirectional_edge_graph (void)
 
constexpr ve_list_graph graphle::test::make_size_one_graph (void)
 
constexpr ve_list_graph graphle::test::make_empty_graph (void)
 
constexpr auto graphle::test::make_graphs (void)
 

Detailed Description

Function Documentation

◆ make_bidirectional_edge_graph()

constexpr ve_list_graph graphle::test::make_bidirectional_edge_graph ( void  )
inlineconstexpr

A directed graph with vertices that have edges in both directions.

0 -> 1 <-> 2 <-> 4
| ^
v |
3 <-> 5

Definition at line 120 of file test_data.hpp.

◆ make_cyclic_graph()

constexpr ve_list_graph graphle::test::make_cyclic_graph ( void  )
inlineconstexpr

A directed graph with two cycles ([2 -> 3 -> 4 -> 5 -> 6 -> 2] and [5 -> 6 -> 7 -> 8 -> 5]).

0 -> 2 <------ 6 -> 7
| ^ |
v | v
1 -> 3 -> 4 -> 5 <- 8

Definition at line 76 of file test_data.hpp.

◆ make_dag_graph()

constexpr ve_list_graph graphle::test::make_dag_graph ( void  )
inlineconstexpr

A directed acyclic graph (DAG).

0 -> 2 ------> 6 -> 7
| ^
v |
1 -> 3 -> 4 -> 5 -> 8

Definition at line 51 of file test_data.hpp.

◆ make_empty_graph()

constexpr ve_list_graph graphle::test::make_empty_graph ( void  )
inlineconstexpr

A graph with no vertices.

Definition at line 151 of file test_data.hpp.

◆ make_graphs()

constexpr auto graphle::test::make_graphs ( void  )
inlineconstexpr

Creates a std::array of the results of all make_*_graph methods.

Definition at line 160 of file test_data.hpp.

◆ make_linear_graph()

constexpr ve_list_graph graphle::test::make_linear_graph ( void  )
inlineconstexpr

A directed graph where each vertex has exactly zero or one out edge.

0 -> 1 -> 2 -> 3 -> 4 -> 5

Definition at line 98 of file test_data.hpp.

◆ make_size_one_graph()

constexpr ve_list_graph graphle::test::make_size_one_graph ( void  )
inlineconstexpr

A graph with one vertex.

0

Definition at line 140 of file test_data.hpp.

◆ make_tree_graph()

constexpr ve_list_graph graphle::test::make_tree_graph ( void  )
inlineconstexpr

A tree-like directed graph with a varying number of children per vertex.

┌-> 2 -> 3 -> 4
0 -> 1
└-> 5 -> 6 -> 7
├ -> 8
├ -> 9
└ -> 10

Definition at line 26 of file test_data.hpp.