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

Tests for find_disjoint_negative_cycles() (Negative_Cycles.H). More...

#include <Negative_Cycles.H>
#include <gtest/gtest.h>
#include <cmath>
#include <functional>
#include <limits>
#include <random>
#include <set>
#include <thread>
#include <tuple>
#include <type_traits>
#include <vector>
#include <Bellman_Ford.H>
#include <tpl_agraph.H>
#include <tpl_graph.H>
#include "negative_cycles_test_support.H"
Include dependency graph for negative_cycles_test.cc:

Go to the source code of this file.

Functions

 TEST (NegativeCyclesTest, TwoArcDisjointNegativeCyclesAreBothFound)
 
 TEST (NegativeCyclesTest, SingleNegativeCycleIsReportedOnce)
 
 TEST (NegativeCyclesTest, NoNegativeCycleReturnsEmptyList)
 
 TEST (NegativeCyclesTest, MaxCyclesZeroReturnsEmptyList)
 
 TEST (NegativeCyclesTest, MaxCyclesZeroDoesNotTouchTheGraph)
 
 TEST (NegativeCyclesTest, MaxCyclesLimitsTheCount)
 
 TEST (NegativeCyclesTest, CyclesSharingANodeButNoArcAreBothFound)
 
 TEST (NegativeCyclesTest, ExclusionPolicyDecidesWhatCyclesSharingAnArcYield)
 
 TEST (NegativeCyclesTest, ParallelArcsAreToldApart)
 
 TEST (NegativeCyclesTest, ArcFilterHidesArcs)
 
 TEST (NegativeCyclesTest, FloatingWeightsWork)
 
 TEST (NegativeCyclesTest, ArrayDigraphBackendWorks)
 
 TEST (NegativeCyclesTest, InvalidInputsThrow)
 
 TEST (NegativeCyclesTest, GraphIsLeftUntouched)
 
 TEST (NegativeCyclesTest, KnownNumericLimitationAbsorptionHidesNegativeLoop)
 
 TEST (NegativeCyclesTest, KnownNumericLimitationAbsorptionInsideAComponent)
 
 TEST (NegativeCyclesTest, CancellationDoesNotFakeANegativeCycle)
 
 TEST (NegativeCyclesTest, DistanceAndFilterAreCalledOncePerArc)
 
 TEST (NegativeCyclesTest, NonFiniteWeightsHiddenByTheFilterAreIgnored)
 
 TEST (NegativeCyclesTest, NonNullCookiesAndBitsAreLeftUntouched)
 
 TEST (NegativeCyclesTest, SingleNodeSelfLoops)
 
 TEST (NegativeCyclesTest, DisconnectedGraphsAreSearchedInEveryComponent)
 
 TEST (NegativeCyclesTest, IntCostsWork)
 
 TEST (NegativeCyclesTest, LongDoubleCostsWork)
 
 TEST (NegativeCyclesTest, CostsAtTheLimitsOfTheType)
 
 TEST (NegativeCyclesTest, RandomGraphsAgreeWithExhaustiveOracle)
 
 TEST (NegativeCyclesTest, LargeGraphsAreIndexedCorrectly)
 
 TEST (NegativeCyclesTest, GraphsWithoutNodesOrWithOneNodeAreIndexed)
 
 TEST (NegativeCyclesTest, NodeIndexFindsEveryNodeAndRejectsTheRest)
 
 TEST (NegativeCyclesTest, ConcurrentSearchesOnTheSameGraphAgree)
 

Detailed Description

Function Documentation

◆ TEST() [1/30]

◆ TEST() [2/30]

TEST ( NegativeCyclesTest  ,
ArrayDigraphBackendWorks   
)

◆ TEST() [3/30]

TEST ( NegativeCyclesTest  ,
CancellationDoesNotFakeANegativeCycle   
)

◆ TEST() [4/30]

◆ TEST() [5/30]

TEST ( NegativeCyclesTest  ,
CostsAtTheLimitsOfTheType   
)

◆ TEST() [6/30]

TEST ( NegativeCyclesTest  ,
CyclesSharingANodeButNoArcAreBothFound   
)

◆ TEST() [7/30]

◆ TEST() [8/30]

TEST ( NegativeCyclesTest  ,
DistanceAndFilterAreCalledOncePerArc   
)

◆ TEST() [9/30]

TEST ( NegativeCyclesTest  ,
ExclusionPolicyDecidesWhatCyclesSharingAnArcYield   
)

◆ TEST() [10/30]

TEST ( NegativeCyclesTest  ,
FloatingWeightsWork   
)

◆ TEST() [11/30]

◆ TEST() [12/30]

TEST ( NegativeCyclesTest  ,
GraphsWithoutNodesOrWithOneNodeAreIndexed   
)

◆ TEST() [13/30]

TEST ( NegativeCyclesTest  ,
IntCostsWork   
)

◆ TEST() [14/30]

◆ TEST() [15/30]

TEST ( NegativeCyclesTest  ,
KnownNumericLimitationAbsorptionHidesNegativeLoop   
)

◆ TEST() [16/30]

TEST ( NegativeCyclesTest  ,
KnownNumericLimitationAbsorptionInsideAComponent   
)

◆ TEST() [17/30]

TEST ( NegativeCyclesTest  ,
LargeGraphsAreIndexedCorrectly   
)

◆ TEST() [18/30]

TEST ( NegativeCyclesTest  ,
LongDoubleCostsWork   
)

◆ TEST() [19/30]

TEST ( NegativeCyclesTest  ,
MaxCyclesLimitsTheCount   
)

◆ TEST() [20/30]

◆ TEST() [21/30]

TEST ( NegativeCyclesTest  ,
MaxCyclesZeroReturnsEmptyList   
)

◆ TEST() [22/30]

TEST ( NegativeCyclesTest  ,
NodeIndexFindsEveryNodeAndRejectsTheRest   
)

◆ TEST() [23/30]

TEST ( NegativeCyclesTest  ,
NoNegativeCycleReturnsEmptyList   
)

◆ TEST() [24/30]

TEST ( NegativeCyclesTest  ,
NonFiniteWeightsHiddenByTheFilterAreIgnored   
)

◆ TEST() [25/30]

◆ TEST() [26/30]

◆ TEST() [27/30]

◆ TEST() [28/30]

TEST ( NegativeCyclesTest  ,
SingleNegativeCycleIsReportedOnce   
)

◆ TEST() [29/30]

TEST ( NegativeCyclesTest  ,
SingleNodeSelfLoops   
)

◆ TEST() [30/30]

TEST ( NegativeCyclesTest  ,
TwoArcDisjointNegativeCyclesAreBothFound   
)