Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Testing::NetworkGeneratorConfig Struct Reference

Random network generator configuration. More...

#include <random_network_generator.H>

Public Attributes

size_t num_nodes = 10
 Number of nodes.
 
size_t num_arcs = 20
 Number of arcs (ignored for some generators)
 
double density = 0.3
 Edge density [0, 1] (for Erdős–Rényi)
 
double min_capacity = 1.0
 Minimum arc capacity.
 
double max_capacity = 100.0
 Maximum arc capacity.
 
double min_cost = 1.0
 Minimum arc cost (for cost networks)
 
double max_cost = 10.0
 Maximum arc cost.
 
unsigned seed = 42
 Random seed (0 = time-based)
 
bool ensure_connected = true
 Ensure source can reach sink.
 

Detailed Description

Random network generator configuration.

Definition at line 59 of file random_network_generator.H.

Member Data Documentation

◆ density

double Aleph::Testing::NetworkGeneratorConfig::density = 0.3

◆ ensure_connected

bool Aleph::Testing::NetworkGeneratorConfig::ensure_connected = true

◆ max_capacity

double Aleph::Testing::NetworkGeneratorConfig::max_capacity = 100.0

Maximum arc capacity.

Definition at line 65 of file random_network_generator.H.

Referenced by TEST(), TEST(), TEST(), and TEST().

◆ max_cost

double Aleph::Testing::NetworkGeneratorConfig::max_cost = 10.0

Maximum arc cost.

Definition at line 67 of file random_network_generator.H.

Referenced by TEST(), and TEST().

◆ min_capacity

double Aleph::Testing::NetworkGeneratorConfig::min_capacity = 1.0

Minimum arc capacity.

Definition at line 64 of file random_network_generator.H.

Referenced by TEST(), TEST(), TEST(), and TEST().

◆ min_cost

double Aleph::Testing::NetworkGeneratorConfig::min_cost = 1.0

Minimum arc cost (for cost networks)

Definition at line 66 of file random_network_generator.H.

Referenced by TEST(), and TEST().

◆ num_arcs

size_t Aleph::Testing::NetworkGeneratorConfig::num_arcs = 20

Number of arcs (ignored for some generators)

Definition at line 62 of file random_network_generator.H.

◆ num_nodes

◆ seed

unsigned Aleph::Testing::NetworkGeneratorConfig::seed = 42

The documentation for this struct was generated from the following file: