|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Exact short-cycle search: topology, witnesses and an independent oracle. More...
#include <Negative_Cycles.H>#include <gtest/gtest.h>#include <algorithm>#include <cmath>#include <functional>#include <limits>#include <random>#include <set>#include <tuple>#include <vector>#include "negative_cycles_test_support.H"Go to the source code of this file.
Functions | |
| TEST (ShortNegativeCycleTest, EmptyAndAcyclicGraphsHaveNoWitness) | |
| TEST (ShortNegativeCycleTest, BoundSelectsLoopsPairsAndTriangles) | |
| TEST (ShortNegativeCycleTest, SelfLoopsCannotHideACheaperTriangle) | |
| TEST (ShortNegativeCycleTest, BoundsAreCheckedBeforeAccessingTheGraph) | |
| TEST (ShortNegativeCycleTest, ParallelArcsKeepTheirIdentityAndRespectTheFilter) | |
| TEST (ShortNegativeCycleTest, GlobalTiesPreferTheShortestCycle) | |
| TEST (ShortNegativeCycleTest, FloatingCancellationCannotHideTheBestTriangle) | |
| TEST (ShortNegativeCycleTest, RoundingFilterKeepsCandidatesNearItsBound) | |
| TEST (ShortNegativeCycleTest, FloatingTiesAreDecidedBeforeRoundingTheTotal) | |
| TEST (ShortNegativeCycleTest, OppositeExtremeWeightsDoNotOverflowTheirComparison) | |
| TEST (ShortNegativeCycleTest, IntegersCheckOverflowButDoNotReserveMaximumAsInfinity) | |
| TEST (ShortNegativeCycleTest, CandidatesAboveTheCostTypeDoNotAbortTheSearch) | |
| TEST (ShortNegativeCycleTest, CandidatesJustAboveTheRangeDoNotAbortTheSearch) | |
| TEST (ShortNegativeCycleTest, NonFiniteWeightsAreValidatedOnlyAfterFiltering) | |
| TEST (ShortNegativeCycleTest, ReadsWeightsOnceAndPreservesGraphState) | |
| TEST (ShortNegativeCycleTest, ArrayDigraphAndUnsignedWeightsAreSupported) | |
| TEST (ShortNegativeCycleTest, RandomMultigraphsAgreeWithExhaustiveEnumerationAndTheDPBound) | |
Exact short-cycle search: topology, witnesses and an independent oracle.
Definition in file short_negative_cycle_test.cc.
| TEST | ( | ShortNegativeCycleTest | , |
| ArrayDigraphAndUnsignedWeightsAreSupported | |||
| ) |
Definition at line 357 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| BoundsAreCheckedBeforeAccessingTheGraph | |||
| ) |
Definition at line 177 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::has_cycle(), and Aleph::most_negative_cycle_up_to_3().
| TEST | ( | ShortNegativeCycleTest | , |
| BoundSelectsLoopsPairsAndTriangles | |||
| ) |
Definition at line 144 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| CandidatesAboveTheCostTypeDoNotAbortTheSearch | |||
| ) |
Definition at line 275 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), m, and Aleph::most_negative_cycle_up_to_3().
| TEST | ( | ShortNegativeCycleTest | , |
| CandidatesJustAboveTheRangeDoNotAbortTheSearch | |||
| ) |
Definition at line 310 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| EmptyAndAcyclicGraphsHaveNoWitness | |||
| ) |
Definition at line 126 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| FloatingCancellationCannotHideTheBestTriangle | |||
| ) |
Definition at line 216 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| FloatingTiesAreDecidedBeforeRoundingTheTotal | |||
| ) |
Definition at line 245 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| GlobalTiesPreferTheShortestCycle | |||
| ) |
Definition at line 206 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| IntegersCheckOverflowButDoNotReserveMaximumAsInfinity | |||
| ) |
Definition at line 264 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), m, and Aleph::most_negative_cycle_up_to_3().
| TEST | ( | ShortNegativeCycleTest | , |
| NonFiniteWeightsAreValidatedOnlyAfterFiltering | |||
| ) |
Definition at line 331 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), and Aleph::most_negative_cycle_up_to_3().
| TEST | ( | ShortNegativeCycleTest | , |
| OppositeExtremeWeightsDoNotOverflowTheirComparison | |||
| ) |
Definition at line 256 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), m, and Aleph::most_negative_cycle_up_to_3().
| TEST | ( | ShortNegativeCycleTest | , |
| ParallelArcsKeepTheirIdentityAndRespectTheFilter | |||
| ) |
Definition at line 193 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| RandomMultigraphsAgreeWithExhaustiveEnumerationAndTheDPBound | |||
| ) |
Definition at line 368 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), m, Aleph::most_negative_cycle_bounded(), Aleph::most_negative_cycle_up_to_3(), r, rng, and w.
| TEST | ( | ShortNegativeCycleTest | , |
| ReadsWeightsOnceAndPreservesGraphState | |||
| ) |
Definition at line 342 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), Negative_Cycles_Test_Support::Planted_State< GT >::plant(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| RoundingFilterKeepsCandidatesNearItsBound | |||
| ) |
Definition at line 228 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_up_to_3(), and r.
| TEST | ( | ShortNegativeCycleTest | , |
| SelfLoopsCannotHideACheaperTriangle | |||
| ) |
Definition at line 160 of file short_negative_cycle_test.cc.
References Negative_Cycles_Test_Support::build_graph(), Aleph::most_negative_cycle_bounded(), Aleph::most_negative_cycle_up_to_3(), and r.