|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The contract matrix of the matchings: every template of tpl_bipartite.H, Blossom.H, Blossom_Weighted.H and Min_Cost_Matching.H with every kind of graph, arc filter and constness that it takes. More...
#include <set>#include <stdexcept>#include <type_traits>#include <utility>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <tpl_bipartite.H>#include <Blossom.H>#include <Blossom_Weighted.H>#include <Min_Cost_Matching.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 | ContractMatchingBipartite< GT > |
| class | ContractMatchingBlossom< GT > |
| class | ContractMatchingWeighted< GT > |
The contract matrix of the matchings: every template of tpl_bipartite.H, Blossom.H, Blossom_Weighted.H and Min_Cost_Matching.H with every kind of graph, arc filter and constness that it takes.
The matchings take only the three kinds of graph that are not directed. Each test instantiates one template with each of them and with each filter of graph_filter_catalog.H and Dft_Show_Arc, and calls each of its entry points once, on a graph as it is and as a const graph. The graphs are so small that the answer is known, and the filters hide arc number 2, whose absence changes it: a filter that is not applied shows up.
The combinations that should compile and do not are kept, as known failures that must not compile yet, in graph_contract_compile_check.cmake.
Definition in file graph_contract_matrix_matching_test.cc.
| TYPED_TEST | ( | ContractMatchingBipartite | , |
| ComputeBipartite | |||
| ) |
Definition at line 230 of file graph_contract_matrix_matching_test.cc.
References EXPECT_THROW_OR_FILTER, graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, and l3.
| TYPED_TEST | ( | ContractMatchingBipartite | , |
| ComputeBipartiteAllComponents | |||
| ) |
Definition at line 269 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, and l2.
| TYPED_TEST | ( | ContractMatchingBipartite | , |
| HopcroftKarp | |||
| ) |
Definition at line 335 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and h.
| TYPED_TEST | ( | ContractMatchingBipartite | , |
| HopcroftKarpCopiesTheFilterGiven | |||
| ) |
Definition at line 388 of file graph_contract_matrix_matching_test.cc.
References graph_harness::Built< GT >::g, and m.
| TYPED_TEST | ( | ContractMatchingBipartite | , |
| MaximumCardinalityBipartiteMatching | |||
| ) |
Definition at line 300 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and h.
| TYPED_TEST | ( | ContractMatchingBlossom | , |
| BlossomMaximumCardinalityMatching | |||
| ) |
Definition at line 441 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractMatchingBlossom | , |
| ComputeMaximumCardinalityGeneralMatching | |||
| ) |
Definition at line 460 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractMatchingBlossom | , |
| MaximumCardinalityGeneralMatching | |||
| ) |
Definition at line 420 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractMatchingWeighted | , |
| BlossomMaximumWeightMatching | |||
| ) |
Definition at line 578 of file graph_contract_matrix_matching_test.cc.
References Aleph::blossom_maximum_weight_matching(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, m, and r.
| TYPED_TEST | ( | ContractMatchingWeighted | , |
| BlossomMinimumCostMatching | |||
| ) |
Definition at line 646 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractMatchingWeighted | , |
| ComputeMaximumWeightGeneralMatching | |||
| ) |
Definition at line 600 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractMatchingWeighted | , |
| MaximumWeightGeneralMatching | |||
| ) |
Definition at line 554 of file graph_contract_matrix_matching_test.cc.
References Aleph::compute_maximum_weight_general_matching(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, m, and r.
| TYPED_TEST | ( | ContractMatchingWeighted | , |
| MinimumCostGeneralMatching | |||
| ) |
Definition at line 620 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractMatchingWeighted | , |
| MinimumCostMatchingClasses | |||
| ) |
Definition at line 687 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractMatchingWeighted | , |
| MinimumCostPerfectGeneralMatching | |||
| ) |
Definition at line 664 of file graph_contract_matrix_matching_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST_SUITE | ( | ContractMatchingBipartite | , |
| Undirected_Kinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ContractMatchingBlossom | , |
| Undirected_Kinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ContractMatchingWeighted | , |
| Undirected_Kinds | |||
| ) |