|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <gtest/gtest.h>#include "random_network_generator.H"#include <tpl_net.H>#include <tpl_netcost.H>#include <tpl_maxflow.H>#include <tpl_mincost.H>Go to the source code of this file.
Functions | |
| TEST (ErdosRenyiGeneratorTest, BasicGeneration) | |
| TEST (ErdosRenyiGeneratorTest, ConnectivityGuarantee) | |
| TEST (ErdosRenyiGeneratorTest, DifferentDensities) | |
| TEST (LayeredGeneratorTest, BasicGeneration) | |
| TEST (LayeredGeneratorTest, FlowsCorrectly) | |
| TEST (GridGeneratorTest, BasicGeneration) | |
| TEST (GridGeneratorTest, FlowFromCornerToCorner) | |
| TEST (GridGeneratorTest, DifferentSizes) | |
| TEST (BipartiteGeneratorTest, BasicGeneration) | |
| TEST (BipartiteGeneratorTest, MatchingProblem) | |
| TEST (CostNetworkGeneratorTest, ErdosRenyiWithCosts) | |
| TEST (CostNetworkGeneratorTest, LayeredWithCosts) | |
| TEST (StressTest, MultipleRandomNetworks) | |
| TEST (StressTest, LargeGridNetworks) | |
| TEST (StressTest, VaryingDensities) | |
| TEST (FactoryTest, CreateAllGeneratorTypes) | |
| TEST (FactoryTest, InvalidTypeThrows) | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 425 of file random_network_generator_test.cc.
References Aleph::maps().
| TEST | ( | BipartiteGeneratorTest | , |
| BasicGeneration | |||
| ) |
Definition at line 187 of file random_network_generator_test.cc.
References Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::seed, and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | BipartiteGeneratorTest | , |
| MatchingProblem | |||
| ) |
| TEST | ( | CostNetworkGeneratorTest | , |
| ErdosRenyiWithCosts | |||
| ) |
Definition at line 223 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::Testing::NetworkGeneratorConfig::ensure_connected, Aleph::Net_Graph< NodeT, ArcT >::is_single_sink(), Aleph::Net_Graph< NodeT, ArcT >::is_single_source(), Aleph::Net_Graph< NodeT, ArcT >::make_super_sink(), Aleph::Net_Graph< NodeT, ArcT >::make_super_source(), Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::max_cost, Aleph::Testing::NetworkGeneratorConfig::min_cost, Aleph::Testing::NetworkGeneratorConfig::num_nodes, Aleph::Testing::NetworkGeneratorConfig::seed, and Aleph::successive_shortest_paths().
| TEST | ( | CostNetworkGeneratorTest | , |
| LayeredWithCosts | |||
| ) |
Definition at line 250 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::Testing::NetworkGeneratorConfig::ensure_connected, Aleph::Net_Graph< NodeT, ArcT >::is_single_sink(), Aleph::Net_Graph< NodeT, ArcT >::is_single_source(), Aleph::Net_Graph< NodeT, ArcT >::make_super_sink(), Aleph::Net_Graph< NodeT, ArcT >::make_super_source(), Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::max_capacity, Aleph::Testing::NetworkGeneratorConfig::max_cost, Aleph::Testing::NetworkGeneratorConfig::min_capacity, Aleph::Testing::NetworkGeneratorConfig::min_cost, Aleph::Testing::NetworkGeneratorConfig::seed, and Aleph::successive_shortest_paths().
| TEST | ( | ErdosRenyiGeneratorTest | , |
| BasicGeneration | |||
| ) |
Definition at line 27 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, GraphCommon< GT, Node, Arc >::esize(), Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::num_nodes, Aleph::Testing::NetworkGeneratorConfig::seed, and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | ErdosRenyiGeneratorTest | , |
| ConnectivityGuarantee | |||
| ) |
Definition at line 42 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::dinic_maximum_flow(), Aleph::Testing::NetworkGeneratorConfig::ensure_connected, Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::num_nodes, and Aleph::Testing::NetworkGeneratorConfig::seed.
| TEST | ( | ErdosRenyiGeneratorTest | , |
| DifferentDensities | |||
| ) |
Definition at line 60 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::num_nodes, and Aleph::Testing::NetworkGeneratorConfig::seed.
| TEST | ( | FactoryTest | , |
| CreateAllGeneratorTypes | |||
| ) |
Definition at line 384 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::num_nodes, and Aleph::Testing::NetworkGeneratorConfig::seed.
| TEST | ( | FactoryTest | , |
| InvalidTypeThrows | |||
| ) |
Definition at line 416 of file random_network_generator_test.cc.
References Aleph::maps().
| TEST | ( | GridGeneratorTest | , |
| BasicGeneration | |||
| ) |
Definition at line 131 of file random_network_generator_test.cc.
References GraphCommon< GT, Node, Arc >::esize(), Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::seed, and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | GridGeneratorTest | , |
| DifferentSizes | |||
| ) |
Definition at line 163 of file random_network_generator_test.cc.
References Aleph::maps(), and Aleph::Testing::NetworkGeneratorConfig::seed.
| TEST | ( | GridGeneratorTest | , |
| FlowFromCornerToCorner | |||
| ) |
| TEST | ( | LayeredGeneratorTest | , |
| BasicGeneration | |||
| ) |
Definition at line 89 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, GraphCommon< GT, Node, Arc >::esize(), Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::seed, and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | LayeredGeneratorTest | , |
| FlowsCorrectly | |||
| ) |
Definition at line 104 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::edmonds_karp_maximum_flow(), Aleph::Testing::NetworkGeneratorConfig::ensure_connected, Aleph::Net_Graph< NodeT, ArcT >::is_single_sink(), Aleph::Net_Graph< NodeT, ArcT >::is_single_source(), Aleph::Net_Graph< NodeT, ArcT >::make_super_sink(), Aleph::Net_Graph< NodeT, ArcT >::make_super_source(), Aleph::maps(), and Aleph::Testing::NetworkGeneratorConfig::seed.
| TEST | ( | StressTest | , |
| LargeGridNetworks | |||
| ) |
Definition at line 326 of file random_network_generator_test.cc.
References Aleph::capacity_scaling_maximum_flow(), Aleph::Net_Graph< NodeT, ArcT >::is_single_sink(), Aleph::Net_Graph< NodeT, ArcT >::is_single_source(), Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::max_capacity, Aleph::Testing::NetworkGeneratorConfig::min_capacity, Aleph::Testing::NetworkGeneratorConfig::seed, Aleph::size(), and GraphCommon< GT, Node, Arc >::vsize().
| TEST | ( | StressTest | , |
| MultipleRandomNetworks | |||
| ) |
Definition at line 287 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::dinic_maximum_flow(), Aleph::edmonds_karp_maximum_flow(), Aleph::Testing::NetworkGeneratorConfig::ensure_connected, Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::num_nodes, and Aleph::Testing::NetworkGeneratorConfig::seed.
| TEST | ( | StressTest | , |
| VaryingDensities | |||
| ) |
Definition at line 351 of file random_network_generator_test.cc.
References Aleph::Testing::NetworkGeneratorConfig::density, Aleph::dinic_maximum_flow(), Aleph::Testing::NetworkGeneratorConfig::ensure_connected, Aleph::Net_Graph< NodeT, ArcT >::is_single_sink(), Aleph::Net_Graph< NodeT, ArcT >::is_single_source(), Aleph::Net_Graph< NodeT, ArcT >::make_super_sink(), Aleph::Net_Graph< NodeT, ArcT >::make_super_source(), Aleph::maps(), Aleph::Testing::NetworkGeneratorConfig::num_nodes, and Aleph::Testing::NetworkGeneratorConfig::seed.