|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
#include <gtest/gtest.h>#include <tpl_maxflow.H>#include <tpl_net.H>#include <array>#include <chrono>#include <limits>#include <random>#include <set>#include <stdexcept>#include <vector>Go to the source code of this file.
Functions | |
| TEST (DinicTest, LinearNetwork) | |
| TEST (DinicTest, DiamondNetwork) | |
| TEST (DinicTest, ComplexNetwork) | |
| TEST (DinicTest, ZeroCapacity) | |
| TEST (DinicTest, SingleArc) | |
| TEST (CapacityScalingTest, LinearNetwork) | |
| TEST (CapacityScalingTest, DiamondNetwork) | |
| TEST (CapacityScalingTest, ComplexNetwork) | |
| TEST (CapacityScalingTest, LargeCapacities) | |
| TEST (HLPPTest, LinearNetwork) | |
| TEST (HLPPTest, DiamondNetwork) | |
| TEST (HLPPTest, ComplexNetwork) | |
| TEST (FlowDecompositionTest, LinearFlow) | |
| TEST (FlowDecompositionTest, DiamondFlow) | |
| TEST (FlowDecompositionTest, ComplexFlow) | |
| TEST (FlowDecompositionTest, ZeroFlow) | |
| TEST (FlowDecompositionTest, CycleDetection) | |
| TEST (FlowStatisticsTest, BeforeFlow) | |
| TEST (FlowStatisticsTest, AfterFlow) | |
| template<class Net > | |
| double | compute_min_cut_capacity (Net &net) |
| template<class Net > | |
| bool | verify_max_flow_min_cut (Net &net, double max_flow) |
| TEST (MinCutTest, LinearNetwork) | |
| TEST (MinCutTest, DiamondNetwork) | |
| TEST (MinCutTest, ComplexNetwork) | |
| TEST (MinCutTest, GridNetwork) | |
| TEST (MinCutTest, SingleBottleneck) | |
| TEST (MinCutTest, ParallelArcs) | |
| TEST (MinCutTest, AllAlgorithmsGiveSameMinCut) | |
| TEST (MinCutTest, VerifyCutPartition) | |
| TEST (AlgorithmComparisonTest, AllAlgorithmsAgree) | |
| TEST (AlgorithmComparisonTest, GridNetwork) | |
| TEST (EdgeCasesTest, ParallelArcs) | |
| TEST (EdgeCasesTest, SourceBottleneck) | |
| TEST (EdgeCasesTest, SinkBottleneck) | |
| TEST (FunctorTest, DinicFunctor) | |
| TEST (FunctorTest, CapacityScalingFunctor) | |
| TEST (FunctorTest, HLPPFunctor) | |
| TEST (FunctorTest, DecomposeFunctor) | |
| TEST (PerformanceTest, Benchmark) | |
| TEST (RegressionTest, HLPPDisconnectedNodeRelabel) | |
| Node * | build_antiparallel_network (TestNet &net) |
| TEST (AntiParallelTest, AllAlgorithmsAgreeOnAntiParallel) | |
| TEST (AntiParallelTest, PureAntiParallel) | |
| TEST (CapacityScalingTest, FractionalCapacities) | |
| TEST (CapacityScalingTest, MixedIntegerFractional) | |
| template<class Net > | |
| void | verify_flow_conservation (const Net &net) |
| TEST (HLPPStressTest, LadderNetwork) | |
| TEST (HLPPStressTest, HighExcessBottleneck) | |
| TEST (FlowDecompositionTest, ArcFlowConsistency) | |
| TEST (FlowDecompositionTest, Phase2CycleClosingNode) | |
| TEST (FlowDecompositionTest, Phase1CycleClosingNode) | |
| TEST (DisconnectedTest, ZeroCapacityBottleneck) | |
| TEST (DisconnectedTest, InvalidNetworkThrows) | |
| TEST (DinicStressTest, LongChain) | |
| TEST (DinicStressTest, WideParallel) | |
| TEST (RandomStressTest, SmallRandomGraphs) | |
| TEST (RandomStressTest, MediumRandomGraphs) | |
| TEST (IntegerFlowTest, AllAlgorithmsAgree) | |
| TEST (IntegerFlowTest, ComplexIntegerNetwork) | |
| TEST (IntegerFlowTest, RandomIntegerGraphs) | |
| TEST (IntegerFlowTest, MinCutVerification) | |
| TEST (FordFulkersonTest, DecimalCapacitiesKeepTheBalance) | |
| TEST (FordFulkersonTest, ResiduesOfLargerArcsKeepTheBalance) | |
| TEST (FordFulkersonTest, DecimalCapacitiesEndOnAMidSizeNetwork) | |
| TEST (MinCutTest, AFloatingFlowKeepsTheArcsOfTheCutFull) | |
| TEST (ReturnDustTest, KeepsTheResiduesWithinTheToleranceBesideDust) | |
| TEST (ReturnDustTest, ReturnsTheDustOfAnEndFromItsSmallestFlowsFirst) | |
| TEST (InfiniteCapacityTest, ArcsOfInfiniteCapacityAloneGiveAnInfiniteMaximumFlow) | |
| TEST (InfiniteCapacityTest, AFinitePathThroughAnInfiniteArcCarriesItsBottleneck) | |
| TEST (InfiniteCapacityTest, APathOfInfiniteArcsMakesTheMaximumFlowInfinite) | |
| TEST (InfiniteCapacityTest, AnInfinitePathBesideAnInfiniteArcToAFinitePart) | |
| TEST (InfiniteCapacityTest, DinicAndHlppKeepTheCookiesOfTheNodes) | |
| int | main (int argc, char **argv) |
Definition at line 927 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
Referenced by TEST().
Definition at line 418 of file tpl_maxflow_test.cc.
References Aleph::DynListQueue< T >::front(), Aleph::DynListQueue< T >::get(), GraphCommon< GT, Node, Arc >::get_connected_node(), Aleph::Net_Graph< NodeT, ArcT >::get_sink(), Aleph::Net_Graph< NodeT, ArcT >::get_source(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::has_curr(), Aleph::Digraph_Iterator< GT, Filter >::has_curr(), Aleph::DynListQueue< T >::insert(), Aleph::DynListQueue< T >::is_empty(), and Aleph::DynListQueue< T >::put().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and verify_max_flow_min_cut().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 2257 of file tpl_maxflow_test.cc.
| TEST | ( | AlgorithmComparisonTest | , |
| AllAlgorithmsAgree | |||
| ) |
Definition at line 692 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), and Aleph::ford_fulkerson_maximum_flow().
| TEST | ( | AlgorithmComparisonTest | , |
| GridNetwork | |||
| ) |
Definition at line 711 of file tpl_maxflow_test.cc.
References build_grid_network(), Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), and Aleph::size().
| TEST | ( | AntiParallelTest | , |
| AllAlgorithmsAgreeOnAntiParallel | |||
| ) |
Definition at line 943 of file tpl_maxflow_test.cc.
References build_antiparallel_network(), Aleph::capacity_scaling_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::ford_fulkerson_maximum_flow(), Aleph::hlpp_maximum_flow(), and verify_max_flow_min_cut().
| TEST | ( | AntiParallelTest | , |
| PureAntiParallel | |||
| ) |
Definition at line 979 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | CapacityScalingTest | , |
| ComplexNetwork | |||
| ) |
Definition at line 210 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), and Aleph::Net_Graph< NodeT, ArcT >::check_network().
| TEST | ( | CapacityScalingTest | , |
| DiamondNetwork | |||
| ) |
Definition at line 199 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), and Aleph::Net_Graph< NodeT, ArcT >::check_network().
| TEST | ( | CapacityScalingTest | , |
| FractionalCapacities | |||
| ) |
Definition at line 1006 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | CapacityScalingTest | , |
| LargeCapacities | |||
| ) |
Definition at line 221 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | CapacityScalingTest | , |
| LinearNetwork | |||
| ) |
Definition at line 188 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), and Aleph::Net_Graph< NodeT, ArcT >::check_network().
| TEST | ( | CapacityScalingTest | , |
| MixedIntegerFractional | |||
| ) |
Definition at line 1027 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | DinicStressTest | , |
| LongChain | |||
| ) |
Definition at line 1406 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | DinicStressTest | , |
| WideParallel | |||
| ) |
Definition at line 1429 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::dinic_maximum_flow(), Aleph::hlpp_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | DinicTest | , |
| ComplexNetwork | |||
| ) |
Definition at line 147 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), and Aleph::dinic_maximum_flow().
| TEST | ( | DinicTest | , |
| DiamondNetwork | |||
| ) |
Definition at line 135 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), and Aleph::dinic_maximum_flow().
| TEST | ( | DinicTest | , |
| LinearNetwork | |||
| ) |
Definition at line 124 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), and Aleph::dinic_maximum_flow().
| TEST | ( | DinicTest | , |
| SingleArc | |||
| ) |
Definition at line 172 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | DinicTest | , |
| ZeroCapacity | |||
| ) |
Definition at line 159 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | DisconnectedTest | , |
| InvalidNetworkThrows | |||
| ) |
Definition at line 1382 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), Aleph::hlpp_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | DisconnectedTest | , |
| ZeroCapacityBottleneck | |||
| ) |
Definition at line 1366 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | EdgeCasesTest | , |
| ParallelArcs | |||
| ) |
Definition at line 733 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | EdgeCasesTest | , |
| SinkBottleneck | |||
| ) |
Definition at line 762 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | EdgeCasesTest | , |
| SourceBottleneck | |||
| ) |
Definition at line 748 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | FlowDecompositionTest | , |
| ArcFlowConsistency | |||
| ) |
Definition at line 1208 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), Aleph::dinic_maximum_flow(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
| TEST | ( | FlowDecompositionTest | , |
| ComplexFlow | |||
| ) |
Definition at line 303 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), and Aleph::dinic_maximum_flow().
| TEST | ( | FlowDecompositionTest | , |
| CycleDetection | |||
| ) |
Definition at line 335 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | FlowDecompositionTest | , |
| DiamondFlow | |||
| ) |
Definition at line 290 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), and Aleph::dinic_maximum_flow().
| TEST | ( | FlowDecompositionTest | , |
| LinearFlow | |||
| ) |
Definition at line 278 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), and Aleph::dinic_maximum_flow().
| TEST | ( | FlowDecompositionTest | , |
| Phase1CycleClosingNode | |||
| ) |
Definition at line 1316 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), and last_node.
| TEST | ( | FlowDecompositionTest | , |
| Phase2CycleClosingNode | |||
| ) |
Definition at line 1255 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), and last_node.
| TEST | ( | FlowDecompositionTest | , |
| ZeroFlow | |||
| ) |
Definition at line 317 of file tpl_maxflow_test.cc.
References Aleph::decompose_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | FlowStatisticsTest | , |
| AfterFlow | |||
| ) |
Definition at line 399 of file tpl_maxflow_test.cc.
References Aleph::compute_flow_statistics(), and Aleph::dinic_maximum_flow().
| TEST | ( | FlowStatisticsTest | , |
| BeforeFlow | |||
| ) |
Definition at line 386 of file tpl_maxflow_test.cc.
References Aleph::compute_flow_statistics().
| TEST | ( | FordFulkersonTest | , |
| DecimalCapacitiesEndOnAMidSizeNetwork | |||
| ) |
Definition at line 1824 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), k, nodes, and value.
| TEST | ( | FordFulkersonTest | , |
| DecimalCapacitiesKeepTheBalance | |||
| ) |
Definition at line 1738 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), and nodes.
| TEST | ( | FordFulkersonTest | , |
| ResiduesOfLargerArcsKeepTheBalance | |||
| ) |
Definition at line 1778 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::Net_Graph< NodeT, ArcT >::get_sink(), Aleph::Net_Graph< NodeT, ArcT >::get_source(), and nodes.
| TEST | ( | FunctorTest | , |
| CapacityScalingFunctor | |||
| ) |
Definition at line 791 of file tpl_maxflow_test.cc.
| TEST | ( | FunctorTest | , |
| DecomposeFunctor | |||
| ) |
Definition at line 811 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow().
| TEST | ( | FunctorTest | , |
| DinicFunctor | |||
| ) |
Definition at line 781 of file tpl_maxflow_test.cc.
| TEST | ( | FunctorTest | , |
| HLPPFunctor | |||
| ) |
Definition at line 801 of file tpl_maxflow_test.cc.
| TEST | ( | HLPPStressTest | , |
| HighExcessBottleneck | |||
| ) |
Definition at line 1176 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::hlpp_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | HLPPStressTest | , |
| LadderNetwork | |||
| ) |
Definition at line 1086 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::Array< T >::create(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::hlpp_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), and N.
| TEST | ( | HLPPTest | , |
| ComplexNetwork | |||
| ) |
Definition at line 262 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), and Aleph::hlpp_maximum_flow().
| TEST | ( | HLPPTest | , |
| DiamondNetwork | |||
| ) |
Definition at line 251 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), and Aleph::hlpp_maximum_flow().
| TEST | ( | HLPPTest | , |
| LinearNetwork | |||
| ) |
Definition at line 240 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::check_network(), and Aleph::hlpp_maximum_flow().
| TEST | ( | InfiniteCapacityTest | , |
| AFinitePathThroughAnInfiniteArcCarriesItsBottleneck | |||
| ) |
Definition at line 2120 of file tpl_maxflow_test.cc.
References check(), Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | InfiniteCapacityTest | , |
| AnInfinitePathBesideAnInfiniteArcToAFinitePart | |||
| ) |
Definition at line 2199 of file tpl_maxflow_test.cc.
References check(), Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | InfiniteCapacityTest | , |
| APathOfInfiniteArcsMakesTheMaximumFlowInfinite | |||
| ) |
Definition at line 2173 of file tpl_maxflow_test.cc.
References check(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | InfiniteCapacityTest | , |
| ArcsOfInfiniteCapacityAloneGiveAnInfiniteMaximumFlow | |||
| ) |
Definition at line 2093 of file tpl_maxflow_test.cc.
References check(), Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | InfiniteCapacityTest | , |
| DinicAndHlppKeepTheCookiesOfTheNodes | |||
| ) |
Definition at line 2227 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::hlpp_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), and NODE_COOKIE.
| TEST | ( | IntegerFlowTest | , |
| AllAlgorithmsAgree | |||
| ) |
Definition at line 1583 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::hlpp_maximum_flow(), and Aleph::Net_Cap_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | IntegerFlowTest | , |
| ComplexIntegerNetwork | |||
| ) |
Definition at line 1619 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::dinic_maximum_flow(), and Aleph::hlpp_maximum_flow().
| TEST | ( | IntegerFlowTest | , |
| MinCutVerification | |||
| ) |
Definition at line 1687 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::hlpp_maximum_flow(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
| TEST | ( | IntegerFlowTest | , |
| RandomIntegerGraphs | |||
| ) |
Definition at line 1657 of file tpl_maxflow_test.cc.
References Aleph::and, Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::hlpp_maximum_flow(), and seed.
| TEST | ( | MinCutTest | , |
| AFloatingFlowKeepsTheArcsOfTheCutFull | |||
| ) |
Definition at line 1968 of file tpl_maxflow_test.cc.
| TEST | ( | MinCutTest | , |
| AllAlgorithmsGiveSameMinCut | |||
| ) |
Definition at line 580 of file tpl_maxflow_test.cc.
References Aleph::capacity_scaling_maximum_flow(), compute_min_cut_capacity(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::ford_fulkerson_maximum_flow(), and verify_max_flow_min_cut().
| TEST | ( | MinCutTest | , |
| ComplexNetwork | |||
| ) |
Definition at line 513 of file tpl_maxflow_test.cc.
References compute_min_cut_capacity(), Aleph::dinic_maximum_flow(), Aleph::min_cut(), and verify_max_flow_min_cut().
| TEST | ( | MinCutTest | , |
| DiamondNetwork | |||
| ) |
Definition at line 500 of file tpl_maxflow_test.cc.
References compute_min_cut_capacity(), Aleph::dinic_maximum_flow(), Aleph::min_cut(), and verify_max_flow_min_cut().
| TEST | ( | MinCutTest | , |
| GridNetwork | |||
| ) |
Definition at line 526 of file tpl_maxflow_test.cc.
References build_grid_network(), Aleph::edmonds_karp_maximum_flow(), and verify_max_flow_min_cut().
| TEST | ( | MinCutTest | , |
| LinearNetwork | |||
| ) |
Definition at line 485 of file tpl_maxflow_test.cc.
References compute_min_cut_capacity(), Aleph::dinic_maximum_flow(), Aleph::min_cut(), and verify_max_flow_min_cut().
| TEST | ( | MinCutTest | , |
| ParallelArcs | |||
| ) |
Definition at line 560 of file tpl_maxflow_test.cc.
References compute_min_cut_capacity(), Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), Aleph::min_cut(), and verify_max_flow_min_cut().
| TEST | ( | MinCutTest | , |
| SingleBottleneck | |||
| ) |
Definition at line 536 of file tpl_maxflow_test.cc.
References compute_min_cut_capacity(), Aleph::dinic_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), Aleph::min_cut(), and verify_max_flow_min_cut().
| TEST | ( | MinCutTest | , |
| VerifyCutPartition | |||
| ) |
Definition at line 611 of file tpl_maxflow_test.cc.
References Aleph::dinic_maximum_flow(), Aleph::DynListQueue< T >::front(), Aleph::DynListQueue< T >::get(), GraphCommon< GT, Node, Arc >::get_connected_node(), Aleph::Net_Graph< NodeT, ArcT >::get_sink(), Aleph::Net_Graph< NodeT, ArcT >::get_source(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::has_curr(), Aleph::Digraph_Iterator< GT, Filter >::has_curr(), Aleph::DynListQueue< T >::insert(), Aleph::DynListQueue< T >::is_empty(), and Aleph::DynListQueue< T >::put().
| TEST | ( | PerformanceTest | , |
| Benchmark | |||
| ) |
Definition at line 828 of file tpl_maxflow_test.cc.
References build_grid_network(), Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), and Aleph::edmonds_karp_maximum_flow().
| TEST | ( | RandomStressTest | , |
| MediumRandomGraphs | |||
| ) |
Definition at line 1552 of file tpl_maxflow_test.cc.
References Aleph::and, Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::hlpp_maximum_flow(), and seed.
| TEST | ( | RandomStressTest | , |
| SmallRandomGraphs | |||
| ) |
Definition at line 1522 of file tpl_maxflow_test.cc.
References Aleph::and, Aleph::capacity_scaling_maximum_flow(), Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::hlpp_maximum_flow(), and seed.
| TEST | ( | RegressionTest | , |
| HLPPDisconnectedNodeRelabel | |||
| ) |
Definition at line 869 of file tpl_maxflow_test.cc.
References GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::has_curr(), Aleph::hlpp_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), and Aleph::Net_Graph< NodeT, ArcT >::insert_node().
| TEST | ( | ReturnDustTest | , |
| KeepsTheResiduesWithinTheToleranceBesideDust | |||
| ) |
Definition at line 1986 of file tpl_maxflow_test.cc.
References Aleph::and, Aleph::Net_Graph< NodeT, ArcT >::check_network(), Aleph::Net_Graph< NodeT, ArcT >::check_node(), Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), Aleph::Net_Graph< NodeT, ArcT >::is_single_sink(), Aleph::Net_Graph< NodeT, ArcT >::is_single_source(), and Aleph::net_detail::return_dust().
| TEST | ( | ReturnDustTest | , |
| ReturnsTheDustOfAnEndFromItsSmallestFlowsFirst | |||
| ) |
Definition at line 2026 of file tpl_maxflow_test.cc.
References Aleph::Net_Graph< NodeT, ArcT >::insert_arc(), Aleph::Net_Graph< NodeT, ArcT >::insert_node(), and Aleph::net_detail::return_dust().
Definition at line 1062 of file tpl_maxflow_test.cc.
References GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::Array_Graph< __Graph_Node, __Graph_Arc >::Node_Arc_Iterator::has_curr(), Aleph::Net_Graph< NodeT, ArcT >::is_sink(), Aleph::Net_Graph< NodeT, ArcT >::is_source(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
Definition at line 479 of file tpl_maxflow_test.cc.
References compute_min_cut_capacity(), and Aleph::min_cut().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().