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

The contract matrix of the shortest paths of all the pairs, of the k shortest paths and of the minimum spanning trees: Floyd-Warshall, Johnson, Yen, Eppstein, Kruskal and Prim. More...

#include <set>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <gtest/gtest.h>
#include <tpl_graph.H>
#include <Floyd_Warshall.H>
#include <Johnson.H>
#include <K_Shortest_Paths.H>
#include <Kruskal.H>
#include <Prim.H>
#include "graph_harness.H"
#include "graph_filter_catalog.H"
#include "graph_contract_matrix.H"
Include dependency graph for graph_contract_matrix_paths_all_pairs_test.cc:

Go to the source code of this file.

Classes

class  ContractPathsAllPairs< GT >
 
class  ContractPathsJohnson< GT >
 
class  ContractPathsSpanningTree< GT >
 

Functions

 TYPED_TEST_SUITE (ContractPathsAllPairs, All_Kinds)
 
 TYPED_TEST (ContractPathsAllPairs, FloydAllShortestPaths)
 
 TYPED_TEST (ContractPathsAllPairs, YenKShortestPaths)
 
 TYPED_TEST (ContractPathsAllPairs, EppsteinKShortestPaths)
 
 TYPED_TEST_SUITE (ContractPathsJohnson, Directed_Kinds)
 
 TYPED_TEST (ContractPathsJohnson, Johnson)
 
 TYPED_TEST (ContractPathsJohnson, JohnsonFiltersTheArcsOfTheGraph)
 
 TYPED_TEST_SUITE (ContractPathsSpanningTree, Undirected_Kinds)
 
 TYPED_TEST (ContractPathsSpanningTree, KruskalMinSpanningTree)
 
 TYPED_TEST (ContractPathsSpanningTree, PrimMinSpanningTree)
 

Detailed Description

The contract matrix of the shortest paths of all the pairs, of the k shortest paths and of the minimum spanning trees: Floyd-Warshall, Johnson, Yen, Eppstein, Kruskal and Prim.

Each test instantiates one template of Floyd_Warshall.H, Johnson.H, K_Shortest_Paths.H, Kruskal.H or Prim.H with every kind of graph that its documentation supports 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 or tree 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, unless a test writes others in the infos.

Every combination of these templates compiles, as it should. A check that fails at run time from a defect found by the matrix is marked as a known failure, which must keep failing until the defect is fixed.

Definition in file graph_contract_matrix_paths_all_pairs_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 ( ContractPathsSpanningTree  ,
KruskalMinSpanningTree   
)

◆ TYPED_TEST() [7/7]

◆ TYPED_TEST_SUITE() [1/3]

TYPED_TEST_SUITE ( ContractPathsAllPairs  ,
All_Kinds   
)

◆ TYPED_TEST_SUITE() [2/3]

TYPED_TEST_SUITE ( ContractPathsJohnson  ,
Directed_Kinds   
)

◆ TYPED_TEST_SUITE() [3/3]

TYPED_TEST_SUITE ( ContractPathsSpanningTree  ,
Undirected_Kinds   
)