|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
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"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) | |
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.
| TYPED_TEST | ( | ContractPathsCycles | , |
| BellmanFord | |||
| ) |
Definition at line 167 of file graph_contract_matrix_paths_cycles_test.cc.
References arcs, Aleph::count(), graph_harness::Built< GT >::g, graph_contract_matrix::Hidden, l, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractPathsCycles | , |
| BellmanFordNegativeCycle | |||
| ) |
Definition at line 238 of file graph_contract_matrix_paths_cycles_test.cc.
References graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractPathsCycles | , |
| HowardMinimumMeanCycle | |||
| ) |
Definition at line 301 of file graph_contract_matrix_paths_cycles_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, Aleph::has_cycle(), Aleph::howard_minimum_mean_cycle(), and Aleph::howard_minimum_mean_cycle_value().
| TYPED_TEST | ( | ContractPathsCycles | , |
| KarpMinimumMeanCycle | |||
| ) |
| TYPED_TEST | ( | ContractPathsCycles | , |
| NegativeCycles | |||
| ) |
Definition at line 329 of file graph_contract_matrix_paths_cycles_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, Aleph::most_negative_cycle_bounded(), and Aleph::most_negative_cycle_up_to_3().
| TYPED_TEST_SUITE | ( | ContractPathsCycles | , |
| Directed_Kinds | |||
| ) |