Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
net_utils_test.cc File Reference
#include <gtest/gtest.h>
#include <net_utils.H>
#include <tpl_maxflow.H>
#include <filesystem>
#include <fstream>
#include <string>
#include <unistd.h>
Include dependency graph for net_utils_test.cc:

Go to the source code of this file.

Classes

class  NetUtilsTest
 

Typedefs

using TestNet = Net_Graph< Net_Node< Empty_Class >, Net_Arc< Empty_Class, double > >
 

Functions

 TEST_F (NetUtilsTest, GenerateRandomNetworkBasic)
 
 TEST_F (NetUtilsTest, GenerateRandomNetworkConvenience)
 
 TEST_F (NetUtilsTest, GenerateRandomNetworkConnected)
 
 TEST_F (NetUtilsTest, GenerateGridNetwork)
 
 TEST_F (NetUtilsTest, GenerateGridNetworkUnidirectional)
 
 TEST_F (NetUtilsTest, GenerateGridNetworkFlowComputation)
 
 TEST_F (NetUtilsTest, GenerateBipartiteNetwork)
 
 TEST_F (NetUtilsTest, GenerateBipartiteNetworkMatching)
 
 TEST_F (NetUtilsTest, GenerateLayeredNetwork)
 
 TEST_F (NetUtilsTest, GenerateLayeredNetworkFlow)
 
 TEST_F (NetUtilsTest, GenerateLayeredNetworkRejectsEmptyInteriorLayer)
 
 TEST_F (NetUtilsTest, ExportToDotBasic)
 
 TEST_F (NetUtilsTest, ExportToDotWithOptions)
 
 TEST_F (NetUtilsTest, NetworkToDotString)
 
 TEST_F (NetUtilsTest, ExportToJsonBasic)
 
 TEST_F (NetUtilsTest, NetworkToJsonString)
 
 TEST_F (NetUtilsTest, ExportToDimacsBasic)
 
 TEST_F (NetUtilsTest, DimacsRoundTrip)
 
 TEST_F (NetUtilsTest, DimacsFlowEquivalence)
 
 TEST_F (NetUtilsTest, DimacsImportSkipsCommentsAndBlankLines)
 
 TEST_F (NetUtilsTest, DimacsImportRejectsMalformedFiles)
 
 TEST_F (NetUtilsTest, BenchmarkMaxFlow)
 
 TEST_F (NetUtilsTest, PrintBenchmarkResults)
 
 TEST_F (NetUtilsTest, LargeRandomNetwork)
 
 TEST_F (NetUtilsTest, LargeGridNetwork)
 
int main (int argc, char **argv)
 

Typedef Documentation

◆ TestNet

Definition at line 28 of file net_utils_test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 451 of file net_utils_test.cc.

◆ TEST_F() [1/25]

TEST_F ( NetUtilsTest  ,
BenchmarkMaxFlow   
)

Definition at line 391 of file net_utils_test.cc.

References Aleph::benchmark_maxflow(), and Aleph::dinic_maximum_flow().

◆ TEST_F() [2/25]

TEST_F ( NetUtilsTest  ,
DimacsFlowEquivalence   
)

◆ TEST_F() [3/25]

TEST_F ( NetUtilsTest  ,
DimacsImportRejectsMalformedFiles   
)

Definition at line 367 of file net_utils_test.cc.

◆ TEST_F() [4/25]

TEST_F ( NetUtilsTest  ,
DimacsImportSkipsCommentsAndBlankLines   
)

Definition at line 355 of file net_utils_test.cc.

References Aleph::dinic_maximum_flow().

◆ TEST_F() [5/25]

TEST_F ( NetUtilsTest  ,
DimacsRoundTrip   
)

Definition at line 323 of file net_utils_test.cc.

References Aleph::export_network_to_dimacs().

◆ TEST_F() [6/25]

TEST_F ( NetUtilsTest  ,
ExportToDimacsBasic   
)

Definition at line 306 of file net_utils_test.cc.

References Aleph::export_network_to_dimacs(), and file.

◆ TEST_F() [7/25]

TEST_F ( NetUtilsTest  ,
ExportToDotBasic   
)

◆ TEST_F() [8/25]

TEST_F ( NetUtilsTest  ,
ExportToDotWithOptions   
)

◆ TEST_F() [9/25]

TEST_F ( NetUtilsTest  ,
ExportToJsonBasic   
)

Definition at line 273 of file net_utils_test.cc.

References Aleph::export_network_to_json(), and file.

◆ TEST_F() [10/25]

TEST_F ( NetUtilsTest  ,
GenerateBipartiteNetwork   
)

Definition at line 167 of file net_utils_test.cc.

◆ TEST_F() [11/25]

TEST_F ( NetUtilsTest  ,
GenerateBipartiteNetworkMatching   
)

Definition at line 177 of file net_utils_test.cc.

References Aleph::dinic_maximum_flow().

◆ TEST_F() [12/25]

TEST_F ( NetUtilsTest  ,
GenerateGridNetwork   
)

Definition at line 130 of file net_utils_test.cc.

◆ TEST_F() [13/25]

TEST_F ( NetUtilsTest  ,
GenerateGridNetworkFlowComputation   
)

Definition at line 153 of file net_utils_test.cc.

References Aleph::dinic_maximum_flow().

◆ TEST_F() [14/25]

TEST_F ( NetUtilsTest  ,
GenerateGridNetworkUnidirectional   
)

Definition at line 143 of file net_utils_test.cc.

◆ TEST_F() [15/25]

TEST_F ( NetUtilsTest  ,
GenerateLayeredNetwork   
)

Definition at line 193 of file net_utils_test.cc.

◆ TEST_F() [16/25]

TEST_F ( NetUtilsTest  ,
GenerateLayeredNetworkFlow   
)

Definition at line 203 of file net_utils_test.cc.

References Aleph::dinic_maximum_flow().

◆ TEST_F() [17/25]

TEST_F ( NetUtilsTest  ,
GenerateLayeredNetworkRejectsEmptyInteriorLayer   
)

Definition at line 212 of file net_utils_test.cc.

◆ TEST_F() [18/25]

◆ TEST_F() [19/25]

◆ TEST_F() [20/25]

TEST_F ( NetUtilsTest  ,
GenerateRandomNetworkConvenience   
)

◆ TEST_F() [21/25]

TEST_F ( NetUtilsTest  ,
LargeGridNetwork   
)

Definition at line 439 of file net_utils_test.cc.

References Aleph::dinic_maximum_flow().

◆ TEST_F() [22/25]

TEST_F ( NetUtilsTest  ,
LargeRandomNetwork   
)

◆ TEST_F() [23/25]

TEST_F ( NetUtilsTest  ,
NetworkToDotString   
)

Definition at line 258 of file net_utils_test.cc.

References Aleph::network_to_dot_string().

◆ TEST_F() [24/25]

TEST_F ( NetUtilsTest  ,
NetworkToJsonString   
)

Definition at line 290 of file net_utils_test.cc.

References Aleph::network_to_json_string().

◆ TEST_F() [25/25]

TEST_F ( NetUtilsTest  ,
PrintBenchmarkResults   
)

Definition at line 404 of file net_utils_test.cc.

References output, and Aleph::print_benchmark_results().