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

The contract matrix of Bellman-Ford and of the negative and the minimum mean cycles. More...

#include <set>
#include <stdexcept>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <gtest/gtest.h>
#include <tpl_graph.H>
#include <Bellman_Ford.H>
#include <Min_Mean_Cycle.H>
#include <Howard_Min_Mean_Cycle.H>
#include <Negative_Cycles.H>
#include "graph_harness.H"
#include "graph_filter_catalog.H"
#include "graph_contract_matrix.H"
Include dependency graph for graph_contract_matrix_paths_cycles_test.cc:

Go to the source code of this file.

Classes

class  ContractPathsCycles< GT >
 

Functions

 TYPED_TEST_SUITE (ContractPathsCycles, Directed_Kinds)
 
 TYPED_TEST (ContractPathsCycles, BellmanFord)
 
 TYPED_TEST (ContractPathsCycles, BellmanFordNegativeCycle)
 
 TYPED_TEST (ContractPathsCycles, KarpMinimumMeanCycle)
 
 TYPED_TEST (ContractPathsCycles, HowardMinimumMeanCycle)
 
 TYPED_TEST (ContractPathsCycles, NegativeCycles)
 

Detailed Description

The contract matrix of Bellman-Ford and of the negative and the minimum mean cycles.

Each test instantiates one template of Bellman_Ford.H, Min_Mean_Cycle.H, Howard_Min_Mean_Cycle.H or Negative_Cycles.H with the three kinds of digraph and every arc filter of graph_filter_catalog.H, on a const graph too where it takes one, and calls each of its public entry points once, on a small graph whose path or cycle 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.

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_cycles_test.cc.

Function Documentation

◆ TYPED_TEST() [1/5]

◆ TYPED_TEST() [2/5]

TYPED_TEST ( ContractPathsCycles  ,
BellmanFordNegativeCycle   
)

◆ TYPED_TEST() [3/5]

◆ TYPED_TEST() [4/5]

◆ TYPED_TEST() [5/5]

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( ContractPathsCycles  ,
Directed_Kinds   
)