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

Minimum spanning trees, trees from graphs and depth-first trees with their numbers, on every small multigraph, against the oracles. More...

#include <algorithm>
#include <map>
#include <random>
#include <set>
#include <stdexcept>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <tpl_graph.H>
#include <Kruskal.H>
#include <Prim.H>
#include <graph_to_tree.H>
#include <generate_df_tree.H>
#include "graph_filter_catalog.H"
#include "graph_harness.H"
#include "graph_oracles.H"
Include dependency graph for graph_exhaustive_trees_test.cc:

Go to the source code of this file.

Classes

class  ExhaustiveTrees< GT >
 
class  ExhaustiveTreesOnDigraphs< GT >
 

Functions

 TYPED_TEST_SUITE (ExhaustiveTrees, Undirected_Kinds)
 
 TYPED_TEST (ExhaustiveTrees, SpanningTreesAreMinimumForEveryWeighting)
 
 TYPED_TEST (ExhaustiveTrees, SpanningTreesRespectTheFilter)
 
 TYPED_TEST (ExhaustiveTrees, SpanningTreesAreMinimumOnRandomGraphs)
 
 TYPED_TEST_SUITE (ExhaustiveTreesOnDigraphs, Directed_Kinds)
 
 TYPED_TEST (ExhaustiveTreesOnDigraphs, SpanningTreesRejectADigraph)
 
 TYPED_TEST (ExhaustiveTrees, TreesFromGraphsMatchTheirComponents)
 
 TYPED_TEST (ExhaustiveTrees, DepthFirstTreesHaveTheirNumbers)
 

Detailed Description

Minimum spanning trees, trees from graphs and depth-first trees with their numbers, on every small multigraph, against the oracles.

Kruskal and Prim run on every multigraph of 3 nodes and 3 arcs with every assignment of the weights -1, 0 and 1, on every one of 4 nodes and 3 arcs with each set of hidden arcs, and on random graphs of up to 8 nodes, on the three kinds of graph that are not directed; the weight of what they give is that of the minimum spanning forest of oracle::min_spanning_forest_weight(). The trees built from a graph, and the depth-first trees with their df and low numbers, are checked against their definitions on every multigraph of the domain of graph_harness.H.

Definition in file graph_exhaustive_trees_test.cc.

Function Documentation

◆ TYPED_TEST() [1/6]

◆ TYPED_TEST() [2/6]

TYPED_TEST ( ExhaustiveTrees  ,
SpanningTreesAreMinimumForEveryWeighting   
)

◆ TYPED_TEST() [3/6]

TYPED_TEST ( ExhaustiveTrees  ,
SpanningTreesAreMinimumOnRandomGraphs   
)

◆ TYPED_TEST() [4/6]

◆ TYPED_TEST() [5/6]

◆ TYPED_TEST() [6/6]

◆ TYPED_TEST_SUITE() [1/2]

TYPED_TEST_SUITE ( ExhaustiveTrees  ,
Undirected_Kinds   
)

◆ TYPED_TEST_SUITE() [2/2]

TYPED_TEST_SUITE ( ExhaustiveTreesOnDigraphs  ,
Directed_Kinds   
)