|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The contract matrix of the single-source shortest paths: Dijkstra, A*, IDA*, Dial and 0-1 BFS, and their common base. More...
#include <set>#include <stdexcept>#include <string>#include <type_traits>#include <utility>#include <gtest/gtest.h>#include <tpl_graph.H>#include <shortest_path_common.H>#include <Dijkstra.H>#include <AStar.H>#include <IDA_Star.H>#include <Dial.H>#include <Zero_One_BFS.H>#include "graph_harness.H"#include "graph_filter_catalog.H"#include "graph_contract_matrix.H"Go to the source code of this file.
Classes | |
| class | ContractPathsSingleSource< GT > |
Functions | |
| TYPED_TEST_SUITE (ContractPathsSingleSource, All_Kinds) | |
| TYPED_TEST (ContractPathsSingleSource, ShortestPathBase) | |
| TYPED_TEST (ContractPathsSingleSource, DijkstraMinPaths) | |
| TYPED_TEST (ContractPathsSingleSource, AStarMinPath) | |
| TYPED_TEST (ContractPathsSingleSource, DijkstraAndAStarAfterAnotherPainting) | |
| TYPED_TEST (ContractPathsSingleSource, IdaStar) | |
| TYPED_TEST (ContractPathsSingleSource, DialMinPaths) | |
| TYPED_TEST (ContractPathsSingleSource, ZeroOneBfs) | |
The contract matrix of the single-source shortest paths: Dijkstra, A*, IDA*, Dial and 0-1 BFS, and their common base.
Each test instantiates one template of shortest_path_common.H, Dijkstra.H, AStar.H, IDA_Star.H, Dial.H or Zero_One_BFS.H with every kind of graph and every arc filter of graph_filter_catalog.H, on a const graph too, and calls each of its public entry points once, on a small graph whose shortest path needs the arc that the filters hide. The distance is the default one, Dft_Dist, which reads the info of the arcs: the weights are the numbers of the arcs. Each filter gets a graph of its own; what the painting of one leaves in the arc that the next one hides is a known defect, checked apart.
The combinations that should compile and do not are left out here; graph_contract_compile_check.cmake checks that they still fail.
Definition in file graph_contract_matrix_paths_single_source_test.cc.
| TYPED_TEST | ( | ContractPathsSingleSource | , |
| AStarMinPath | |||
| ) |
Definition at line 227 of file graph_contract_matrix_paths_single_source_test.cc.
References arcs, graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractPathsSingleSource | , |
| DialMinPaths | |||
| ) |
Definition at line 356 of file graph_contract_matrix_paths_single_source_test.cc.
References arcs, graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractPathsSingleSource | , |
| DijkstraAndAStarAfterAnotherPainting | |||
| ) |
Definition at line 290 of file graph_contract_matrix_paths_single_source_test.cc.
References Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::copy_painted_min_paths_tree(), Aleph::count(), Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::find_min_path(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::get_num_arcs(), graph_contract_matrix::Hidden, graph_harness::Built< GT >::nodes, Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree(), and y.
| TYPED_TEST | ( | ContractPathsSingleSource | , |
| DijkstraMinPaths | |||
| ) |
Definition at line 172 of file graph_contract_matrix_paths_single_source_test.cc.
References arcs, Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::copy_painted_min_paths_tree(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::is_painted(), graph_harness::Built< GT >::nodes, and Aleph::Dijkstra_Min_Paths< GT, Distance, Itor, SA, HeapT >::paint_min_paths_tree().
| TYPED_TEST | ( | ContractPathsSingleSource | , |
| IdaStar | |||
| ) |
Definition at line 330 of file graph_contract_matrix_paths_single_source_test.cc.
References arcs, graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractPathsSingleSource | , |
| ShortestPathBase | |||
| ) |
Definition at line 151 of file graph_contract_matrix_paths_single_source_test.cc.
References graph_harness::Built< GT >::g, Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::get_distance(), Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::get_graph(), Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::get_min_path(), Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::get_start_node(), Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::has_computation(), Aleph::Shortest_Path_Base< GT, Distance, Itor, SA, HeapT >::is_painted(), and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractPathsSingleSource | , |
| ZeroOneBfs | |||
| ) |
Definition at line 387 of file graph_contract_matrix_paths_single_source_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST_SUITE | ( | ContractPathsSingleSource | , |
| All_Kinds | |||
| ) |