|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Matchings of maximum weight and of minimum cost on every small multigraph, against brute force. More...
#include <algorithm>#include <limits>#include <random>#include <set>#include <stdexcept>#include <string>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <Blossom_Weighted.H>#include <Min_Cost_Matching.H>#include "graph_filter_catalog.H"#include "graph_harness.H"#include "graph_oracles.H"Go to the source code of this file.
Classes | |
| class | ExhaustiveMatching< GT > |
| class | ExhaustiveMatchingOnDigraphs< GT > |
Functions | |
| TYPED_TEST_SUITE (ExhaustiveMatching, Undirected_Kinds) | |
| TYPED_TEST (ExhaustiveMatching, EveryWeightingHasItsBestMatchings) | |
| TYPED_TEST (ExhaustiveMatching, MatchingsRespectTheFilter) | |
| TYPED_TEST (ExhaustiveMatching, RandomGraphsHaveTheirBestMatchings) | |
| TYPED_TEST_SUITE (ExhaustiveMatchingOnDigraphs, Directed_Kinds) | |
| TYPED_TEST (ExhaustiveMatchingOnDigraphs, MatchingsRejectADigraph) | |
Matchings of maximum weight and of minimum cost on every small multigraph, against brute force.
Every matching of a multigraph of up to 3 nodes and 3 arcs, with every assignment of the weights -1, 0 and 1 to its arcs, of one of up to 4 nodes with each set of hidden arcs, and of random graphs of up to 8 nodes, is weighed by brute force over the sets of its arcs; loops never match, and of parallel arcs any may. The matchings of Blossom_Weighted.H and Min_Cost_Matching.H must be matchings of the arcs that the filter shows, with the weight or the cost and the cardinality that they report, and the best ones, also when the cardinality comes first.
Definition in file graph_exhaustive_matching_test.cc.
| TYPED_TEST | ( | ExhaustiveMatching | , |
| EveryWeightingHasItsBestMatchings | |||
| ) |
Definition at line 295 of file graph_exhaustive_matching_test.cc.
References graph_harness::domain(), and graph_harness::for_each_spec().
| TYPED_TEST | ( | ExhaustiveMatching | , |
| MatchingsRespectTheFilter | |||
| ) |
Definition at line 308 of file graph_exhaustive_matching_test.cc.
References graph_harness::Spec::arcs, graph_harness::domain(), graph_harness::for_each_spec(), graph_harness::Spec::num_arcs(), and graph_harness::Spec::w.
| TYPED_TEST | ( | ExhaustiveMatching | , |
| RandomGraphsHaveTheirBestMatchings | |||
| ) |
Definition at line 324 of file graph_exhaustive_matching_test.cc.
References graph_harness::heavy(), k, m, graph_harness::random_spec(), graph_harness::random_weights(), rng, and seed.
| TYPED_TEST | ( | ExhaustiveMatchingOnDigraphs | , |
| MatchingsRejectADigraph | |||
| ) |
Definition at line 345 of file graph_exhaustive_matching_test.cc.
References Aleph::compute_maximum_weight_general_matching(), Aleph::compute_minimum_cost_general_matching(), Aleph::compute_minimum_cost_perfect_general_matching(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and l.
| TYPED_TEST_SUITE | ( | ExhaustiveMatching | , |
| Undirected_Kinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ExhaustiveMatchingOnDigraphs | , |
| Directed_Kinds | |||
| ) |