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

The random graphs of random_graph.H, for every size up to 8 nodes and many seeds, against what they promise. More...

#include <algorithm>
#include <numeric>
#include <set>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include <gtest/gtest.h>
#include <tpl_graph.H>
#include <tpl_sgraph.H>
#include <tpl_agraph.H>
#include <random_graph.H>
#include "graph_harness.H"
#include "graph_oracles.H"
Include dependency graph for graph_exhaustive_generators_test.cc:

Go to the source code of this file.

Classes

class  ExhaustiveGenerators< GT >
 
class  ExhaustiveDigraphGenerators< GT >
 

Functions

 TYPED_TEST_SUITE (ExhaustiveGenerators, Undirected_Kinds)
 
 TYPED_TEST (ExhaustiveGenerators, RandomGraphsKeepTheirPromises)
 
 TYPED_TEST_SUITE (ExhaustiveDigraphGenerators, Directed_Kinds)
 
 TYPED_TEST (ExhaustiveDigraphGenerators, RandomDigraphsKeepTheirPromises)
 

Detailed Description

The random graphs of random_graph.H, for every size up to 8 nodes and many seeds, against what they promise.

Random_Graph and Random_Digraph make graphs without loops nor parallel arcs, connected when asked (strongly, for a digraph); eulerian() makes one with an Eulerian cycle, or throws domain_error only if no arc added to the graph it starts from would do; sufficient_hamiltonian() makes one where Ore's condition holds. The test checks each promise on every size and number of arcs up to 8 nodes, with many seeds, and that a seed gives the same graph again. The nodes are numbered as they are made, by an initializer that the generator keeps by reference.

Definition in file graph_exhaustive_generators_test.cc.

Function Documentation

◆ TYPED_TEST() [1/2]

TYPED_TEST ( ExhaustiveDigraphGenerators  ,
RandomDigraphsKeepTheirPromises   
)

Definition at line 375 of file graph_exhaustive_generators_test.cc.

References graph_harness::heavy().

◆ TYPED_TEST() [2/2]

TYPED_TEST ( ExhaustiveGenerators  ,
RandomGraphsKeepTheirPromises   
)

Definition at line 365 of file graph_exhaustive_generators_test.cc.

References graph_harness::heavy().

◆ TYPED_TEST_SUITE() [1/2]

TYPED_TEST_SUITE ( ExhaustiveDigraphGenerators  ,
Directed_Kinds   
)

◆ TYPED_TEST_SUITE() [2/2]

TYPED_TEST_SUITE ( ExhaustiveGenerators  ,
Undirected_Kinds   
)