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

The generators of random_graph.H: one graph after another, and the Eulerian graphs. More...

#include <gtest/gtest.h>
#include <stdexcept>
#include <random_graph.H>
#include <tpl_dynMapTree.H>
#include <tpl_dynSetTree.H>
#include <tpl_graph.H>
Include dependency graph for random_graph_generators_test.cc:

Go to the source code of this file.

Functions

 TEST (RandomGraphReuse, AnUndirectedTypeGetsADigraphEachTime)
 
 TEST (RandomGraphReuse, EachEulerianGraphIsEulerian)
 
 TEST (RandomGraphReuse, EachEulerianDigraphIsBalanced)
 
 TEST (RandomGraphReuse, AHamiltonianDigraphAfterAnEulerianOne)
 
 TEST (RandomGraphReuse, AGraphAfterOneThatThrew)
 
 TEST (EulerianGraphs, ACompleteGraphOfEvenOrderIsRejected)
 
 TEST (EulerianGraphs, FromSparseToDense)
 

Detailed Description

The generators of random_graph.H: one graph after another, and the Eulerian graphs.

Each graph that a generator gives is its own graph moved out, and the rest of its state stayed: a graph of an undirected type lost the flag that said that it was directed, the parities of the nodes of the former graphs went into the next Eulerian ones, the tracking of the parities that eulerian() started stayed on, and a graph that threw halfway stayed in the generator, which then removed it as an undirected graph.

And the Eulerian graphs: a digraph took the node between the ends of an arc only among its balanced nodes, which could be none, and an undirected graph whose odd nodes were all adjacent had no end.

Definition in file random_graph_generators_test.cc.

Function Documentation

◆ TEST() [1/7]

TEST ( EulerianGraphs  ,
ACompleteGraphOfEvenOrderIsRejected   
)

◆ TEST() [2/7]

◆ TEST() [3/7]

TEST ( RandomGraphReuse  ,
AGraphAfterOneThatThrew   
)

Definition at line 261 of file random_graph_generators_test.cc.

◆ TEST() [4/7]

TEST ( RandomGraphReuse  ,
AHamiltonianDigraphAfterAnEulerianOne   
)

◆ TEST() [5/7]

TEST ( RandomGraphReuse  ,
AnUndirectedTypeGetsADigraphEachTime   
)

◆ TEST() [6/7]

◆ TEST() [7/7]