|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Rigorous tests for Blossom.H maximum matching in general graphs. More...
#include <gtest/gtest.h>#include <algorithm>#include <bit>#include <chrono>#include <cstdint>#include <cstdlib>#include <functional>#include <random>#include <string>#include <stdexcept>#include <utility>#include <vector>#include <Blossom.H>#include <tpl_array.H>#include <tpl_bipartite.H>#include <tpl_dynArray.H>#include <tpl_dynSetTree.H>#include <tpl_graph.H>#include <tpl_olhash.H>#include <tpl_sgraph.H>#include <tpl_agraph.H>Go to the source code of this file.
Functions | |
| TYPED_TEST (BlossomMatchingTypedTest, EmptyGraph) | |
| TYPED_TEST (BlossomMatchingTypedTest, SingleEdge) | |
| TYPED_TEST (BlossomMatchingTypedTest, OddCycleC5) | |
| TYPED_TEST (BlossomMatchingTypedTest, CompleteGraphK6) | |
| TYPED_TEST (BlossomMatchingTypedTest, BlossomContractionScenario) | |
| TYPED_TEST (BlossomMatchingTypedTest, HandlesLoopsAndParallelArcs) | |
| TYPED_TEST (BlossomMatchingTypedTest, FunctorWrapperMatchesFreeFunction) | |
| TYPED_TEST (BlossomMatchingTypedTest, RandomGraphsAgreeWithExactDP) | |
| TYPED_TEST (BlossomMatchingTypedTest, AgreesWithHopcroftKarpOnBipartiteGraphs) | |
| TYPED_TEST (BlossomMatchingTypedTest, NestedOddCyclesWithStems) | |
| TYPED_TEST (BlossomMatchingTypedTest, FlowerWithSharedCenterAndBridge) | |
| TYPED_TEST (BlossomMatchingTypedTest, DenseRandomStressCrossBackendAgreement) | |
| TYPED_TEST (BlossomMatchingTypedTest, BlossomMatchingPerfRegression) | |
| TEST (BlossomMatchingStandaloneTest, ArcFilterIsRespected) | |
| TEST (BlossomMatchingStandaloneTest, DigraphThrowsDomainError) | |
Rigorous tests for Blossom.H maximum matching in general graphs.
Coverage:
Definition in file blossom_test.cc.
| TEST | ( | BlossomMatchingStandaloneTest | , |
| ArcFilterIsRespected | |||
| ) |
Definition at line 634 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), and verify_matching().
| TEST | ( | BlossomMatchingStandaloneTest | , |
| DigraphThrowsDomainError | |||
| ) |
Definition at line 661 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| AgreesWithHopcroftKarpOnBipartiteGraphs | |||
| ) |
Definition at line 445 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), l, r, Aleph::DynArray< T >::reserve(), rng, and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| BlossomContractionScenario | |||
| ) |
Definition at line 350 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| BlossomMatchingPerfRegression | |||
| ) |
Definition at line 570 of file blossom_test.cc.
References Aleph::DynArray< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::DynArray< T >::is_empty(), Aleph::DynArray< T >::reserve(), rng, seed, Aleph::DynArray< T >::size(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| CompleteGraphK6 | |||
| ) |
Definition at line 330 of file blossom_test.cc.
References Aleph::DynArray< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::DynArray< T >::reserve(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| DenseRandomStressCrossBackendAgreement | |||
| ) |
Definition at line 537 of file blossom_test.cc.
References Aleph::DynArray< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::DynArray< T >::reserve(), rng, and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| EmptyGraph | |||
| ) |
Definition at line 288 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| FlowerWithSharedCenterAndBridge | |||
| ) |
Definition at line 508 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| FunctorWrapperMatchesFreeFunction | |||
| ) |
Definition at line 391 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| HandlesLoopsAndParallelArcs | |||
| ) |
Definition at line 369 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| NestedOddCyclesWithStems | |||
| ) |
Definition at line 481 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| OddCycleC5 | |||
| ) |
Definition at line 316 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| RandomGraphsAgreeWithExactDP | |||
| ) |
Definition at line 411 of file blossom_test.cc.
References Aleph::DynArray< T >::append(), Aleph::divide_and_conquer_partition_dp(), Aleph::DynArray< T >::reserve(), rng, and verify_matching().
| TYPED_TEST | ( | BlossomMatchingTypedTest | , |
| SingleEdge | |||
| ) |
Definition at line 302 of file blossom_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and verify_matching().