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

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"
Include dependency graph for graph_exhaustive_matching_test.cc:

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)
 

Detailed Description

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.

Function Documentation

◆ TYPED_TEST() [1/4]

TYPED_TEST ( ExhaustiveMatching  ,
EveryWeightingHasItsBestMatchings   
)

◆ TYPED_TEST() [2/4]

◆ TYPED_TEST() [3/4]

TYPED_TEST ( ExhaustiveMatching  ,
RandomGraphsHaveTheirBestMatchings   
)

◆ TYPED_TEST() [4/4]

◆ TYPED_TEST_SUITE() [1/2]

TYPED_TEST_SUITE ( ExhaustiveMatching  ,
Undirected_Kinds   
)

◆ TYPED_TEST_SUITE() [2/2]

TYPED_TEST_SUITE ( ExhaustiveMatchingOnDigraphs  ,
Directed_Kinds   
)