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

Tests for Tpl Net. More...

#include <gtest/gtest.h>
#include <cmath>
#include <limits>
#include <random>
#include <set>
#include <vector>
#include <tpl_dynDlist.H>
#include <tpl_maxflow.H>
#include <tpl_net.H>
#include <tpl_net_sup_dem.H>
#include <tpl_netcapgraph.H>
#include <tpl_netcost.H>
Include dependency graph for tpl_net_test.cc:

Go to the source code of this file.

Functions

 TEST (NetGraphBasics, SourcesSinksUpdateOnArcOperations)
 
 TEST (NetGraphBasics, DisconnectConnectArcUpdatesSets)
 
 TEST (NetGraphSuperNodes, MakeAndUnmakeSuperSource)
 
 TEST (NetGraphSuperNodes, MakeAndUnmakeSuperSink)
 
 TEST (NetGraphFlowAlgorithms, FordFulkersonAndEdmondsKarp)
 
 TEST (NetGraphFlowAlgorithms, PreflowVariants)
 
 TEST (NetGraphFlowAlgorithms, RandomPreflowWithASeedRepeatsItsPushes)
 
 TEST (NetGraphAugmentingPaths, IncreaseFlowOnPath)
 
 TEST (NetGraphAugmentingPaths, SemiPathAndIncreaseFlow)
 
 TEST (NetGraphResidualHelpers, RemainingFlowAndFilter)
 
 TEST (NetGraphResidualNet, UpdateFlowFromResidual)
 
 TEST (NetGraphMinCut, ComputesCutCapacity)
 
 TEST (NetGraphBasics, AnArcWithMoreFlowThanCapacityIsNotInserted)
 
 TEST (NetGraphBasics, CopiesANetworkWithAnArithmeticArcInfo)
 
 TEST (NetGraphAugmentingPaths, ASemiPathHasTheSlackItWasAskedFor)
 
 TEST (NetGraphAugmentingPaths, FloatingFlowsStayWithinTheirCapacities)
 
 TEST (NetGraphInfiniteFlows, EqualInfiniteFlowsBalanceAndUnequalOnesDoNot)
 
 TEST (NetGraphInfiniteFlows, TheAugmentingPathsReturnAnInfiniteMaximumFlow)
 
 TEST (NetGraphDerived, ASwapTellsItsTwoNetworks)
 
 TEST (NetGraphDerived, ASwapWithItselfTellsNothing)
 
 TEST (NetGraphDerived, ADisconnectionThroughTheBaseIsThatOfTheDerivedNetwork)
 
 TYPED_TEST_SUITE (NetDerivedChanged, Derived_Networks)
 
 TYPED_TEST (NetDerivedChanged, ItKnowsThatItsNodesWentThroughTheBase)
 
 TYPED_TEST (NetDerivedChanged, ItUsesNothingThatIsGoneAfterAChangeThroughTheBase)
 

Detailed Description

Tests for Tpl Net.

Definition in file tpl_net_test.cc.

Function Documentation

◆ TEST() [1/21]

TEST ( NetGraphAugmentingPaths  ,
ASemiPathHasTheSlackItWasAskedFor   
)

◆ TEST() [2/21]

TEST ( NetGraphAugmentingPaths  ,
FloatingFlowsStayWithinTheirCapacities   
)

◆ TEST() [3/21]

TEST ( NetGraphAugmentingPaths  ,
IncreaseFlowOnPath   
)

Definition at line 307 of file tpl_net_test.cc.

References Aleph::find_aumenting_path_dfs(), Aleph::increase_flow(), and nodes.

◆ TEST() [4/21]

TEST ( NetGraphAugmentingPaths  ,
SemiPathAndIncreaseFlow   
)

◆ TEST() [5/21]

◆ TEST() [6/21]

TEST ( NetGraphBasics  ,
CopiesANetworkWithAnArithmeticArcInfo   
)

◆ TEST() [7/21]

◆ TEST() [8/21]

◆ TEST() [9/21]

TEST ( NetGraphDerived  ,
ADisconnectionThroughTheBaseIsThatOfTheDerivedNetwork   
)

◆ TEST() [10/21]

TEST ( NetGraphDerived  ,
ASwapTellsItsTwoNetworks   
)

Definition at line 638 of file tpl_net_test.cc.

References Aleph::Net_Graph< NodeT, ArcT >::swap().

◆ TEST() [11/21]

TEST ( NetGraphDerived  ,
ASwapWithItselfTellsNothing   
)

Definition at line 665 of file tpl_net_test.cc.

References Aleph::Net_Graph< NodeT, ArcT >::swap().

◆ TEST() [12/21]

TEST ( NetGraphFlowAlgorithms  ,
FordFulkersonAndEdmondsKarp   
)

◆ TEST() [13/21]

◆ TEST() [14/21]

TEST ( NetGraphFlowAlgorithms  ,
RandomPreflowWithASeedRepeatsItsPushes   
)

◆ TEST() [15/21]

TEST ( NetGraphInfiniteFlows  ,
EqualInfiniteFlowsBalanceAndUnequalOnesDoNot   
)

Definition at line 569 of file tpl_net_test.cc.

◆ TEST() [16/21]

TEST ( NetGraphInfiniteFlows  ,
TheAugmentingPathsReturnAnInfiniteMaximumFlow   
)

◆ TEST() [17/21]

TEST ( NetGraphMinCut  ,
ComputesCutCapacity   
)

◆ TEST() [18/21]

TEST ( NetGraphResidualHelpers  ,
RemainingFlowAndFilter   
)

Definition at line 335 of file tpl_net_test.cc.

References nodes.

◆ TEST() [19/21]

TEST ( NetGraphResidualNet  ,
UpdateFlowFromResidual   
)

Definition at line 357 of file tpl_net_test.cc.

References Aleph::preflow_create_residual_net(), and Aleph::update_flow().

◆ TEST() [20/21]

◆ TEST() [21/21]

◆ TYPED_TEST() [1/2]

TYPED_TEST ( NetDerivedChanged  ,
ItKnowsThatItsNodesWentThroughTheBase   
)

Definition at line 872 of file tpl_net_test.cc.

◆ TYPED_TEST() [2/2]

TYPED_TEST ( NetDerivedChanged  ,
ItUsesNothingThatIsGoneAfterAChangeThroughTheBase   
)

Definition at line 932 of file tpl_net_test.cc.

References Aleph::clear_graph(), and Aleph::copy_graph().

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( NetDerivedChanged  ,
Derived_Networks   
)