Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
graph_contract_matrix_paths_single_source_test.cc File Reference

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"
Include dependency graph for graph_contract_matrix_paths_single_source_test.cc:

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)
 

Detailed Description

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.

Function Documentation

◆ TYPED_TEST() [1/7]

◆ TYPED_TEST() [2/7]

◆ TYPED_TEST() [3/7]

◆ TYPED_TEST() [4/7]

◆ TYPED_TEST() [5/7]

◆ TYPED_TEST() [6/7]

◆ TYPED_TEST() [7/7]

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( ContractPathsSingleSource  ,
All_Kinds   
)