Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Typedefs | Functions
breadth_first_search.cpp File Reference
#include <test_framework.hpp>
#include <test_data.hpp>
#include <search/test_visit_order.hpp>

Go to the source code of this file.

Typedefs

using datastructure_list_find_root = graphle::meta::type_list< graphle::test::ve_list_graph, graphle::test::ve_map_graph, graphle::test::v_list_out_edge_graph, graphle::test::v_list_in_out_edge_graph >
 

Functions

 TEST (bfs, visit_tree)
 
 TEST (bfs, visit_dag)
 
 TEST (bfs, visit_cyclic)
 
 TEST (bfs, visit_linear)
 
 TEST (bfs, visit_bidirectional_edge)
 
 TEST (bfs, visit_size_one)
 

Typedef Documentation

◆ datastructure_list_find_root

Subset of datastructures for which we can easily find the root vertex if its not equal to structure.root.

Definition at line 10 of file breadth_first_search.cpp.

Function Documentation

◆ TEST() [1/6]

TEST ( bfs  ,
visit_bidirectional_edge   
)
Test:
bfs::visit_bidirectional_edge Visits a bidirectional edge graph using BFS and asserts visitor methods are called in the expected order.

Definition at line 175 of file breadth_first_search.cpp.

◆ TEST() [2/6]

TEST ( bfs  ,
visit_cyclic   
)
Test:
bfs::visit_cyclic Visits a cyclic graph using BFS and asserts visitor methods are called in the expected order.

Definition at line 96 of file breadth_first_search.cpp.

◆ TEST() [3/6]

TEST ( bfs  ,
visit_dag   
)
Test:
bfs::visit_dag Visits a dag graph using BFS and asserts visitor methods are called in the expected order.

Definition at line 48 of file breadth_first_search.cpp.

◆ TEST() [4/6]

TEST ( bfs  ,
visit_linear   
)
Test:
bfs::visit_linear Visits a linear graph using BFS and asserts visitor methods are called in the expected order.

Definition at line 148 of file breadth_first_search.cpp.

◆ TEST() [5/6]

TEST ( bfs  ,
visit_size_one   
)
Test:
bfs::visit_size_one Visits a size-one graph using BFS and asserts visitor methods are called in the expected order.

Definition at line 221 of file breadth_first_search.cpp.

◆ TEST() [6/6]

TEST ( bfs  ,
visit_tree   
)
Test:
bfs::visit_tree Visits a tree-like graph using BFS and asserts visitor methods are called in the expected order.

Definition at line 22 of file breadth_first_search.cpp.