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

Strong components, cycles, topological orders, paths, Euler and dominators on every small digraph, against the oracles. More...

#include <algorithm>
#include <array>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include <gtest/gtest.h>
#include <tpl_graph.H>
#include <Tarjan.H>
#include <kosaraju.H>
#include <topological_sort.H>
#include <tpl_find_path.H>
#include <tpl_test_path.H>
#include <Bidirectional_BFS.H>
#include <warshall.H>
#include <eulerian.H>
#include <Dominators.H>
#include "graph_filter_catalog.H"
#include "graph_harness.H"
#include "graph_oracles.H"
Include dependency graph for graph_exhaustive_digraph_test.cc:

Go to the source code of this file.

Classes

class  ExhaustiveDigraph< GT >
 
class  ExhaustiveDirectedUse< GT >
 

Functions

 TYPED_TEST_SUITE (ExhaustiveDigraph, Directed_Kinds)
 
 TYPED_TEST (ExhaustiveDigraph, StrongComponentsMatchTheOracle)
 
 TYPED_TEST (ExhaustiveDigraph, CyclesMatchTheOracle)
 
 TYPED_TEST (ExhaustiveDigraph, TopologicalOrdersMatchTheOracle)
 
 TYPED_TEST (ExhaustiveDigraph, PathsMatchTheReachabilityOfTheOracle)
 
 TYPED_TEST (ExhaustiveDigraph, PathsRespectTheFilter)
 
 TYPED_TEST (ExhaustiveDigraph, WarshallMatchesTheClosureOfTheOracle)
 
 TYPED_TEST (ExhaustiveDigraph, EulerMatchesTheOracle)
 
 TYPED_TEST (ExhaustiveDigraph, DominatorsMatchTheDefinition)
 
 TYPED_TEST_SUITE (ExhaustiveDirectedUse, Undirected_Kinds)
 
 TYPED_TEST (ExhaustiveDirectedUse, PathsMatchTheReachabilityOfTheOracle)
 
 TYPED_TEST (ExhaustiveDirectedUse, PathsRespectTheFilter)
 

Detailed Description

Strong components, cycles, topological orders, paths, Euler and dominators on every small digraph, against the oracles.

Each test runs one family of algorithms over every digraph of the domain of graph_harness.H (up to 4 nodes and 3 arcs; one more of each with ALEPH_GRAPH_HARNESS=heavy), with loops, parallel and antiparallel arcs and the arcs in two orders, on the three kinds of digraph, and compares each answer with graph_oracles.H. The searches that take a filter run again with every set of hidden arcs, on graphs of up to 3 nodes. The last suite runs the searches meant for a graph whose arcs are read from their source to their target on the three kinds of graph that are not directed.

Definition in file graph_exhaustive_digraph_test.cc.

Function Documentation

◆ TYPED_TEST() [1/10]

◆ TYPED_TEST() [2/10]

◆ TYPED_TEST() [3/10]

◆ TYPED_TEST() [4/10]

TYPED_TEST ( ExhaustiveDigraph  ,
PathsMatchTheReachabilityOfTheOracle   
)

Definition at line 891 of file graph_exhaustive_digraph_test.cc.

References graph_harness::domain().

◆ TYPED_TEST() [5/10]

TYPED_TEST ( ExhaustiveDigraph  ,
PathsRespectTheFilter   
)

Definition at line 896 of file graph_exhaustive_digraph_test.cc.

References graph_harness::domain().

◆ TYPED_TEST() [6/10]

◆ TYPED_TEST() [7/10]

◆ TYPED_TEST() [8/10]

◆ TYPED_TEST() [9/10]

TYPED_TEST ( ExhaustiveDirectedUse  ,
PathsMatchTheReachabilityOfTheOracle   
)

Definition at line 1158 of file graph_exhaustive_digraph_test.cc.

References graph_harness::domain().

◆ TYPED_TEST() [10/10]

TYPED_TEST ( ExhaustiveDirectedUse  ,
PathsRespectTheFilter   
)

Definition at line 1163 of file graph_exhaustive_digraph_test.cc.

References graph_harness::domain().

◆ TYPED_TEST_SUITE() [1/2]

TYPED_TEST_SUITE ( ExhaustiveDigraph  ,
Directed_Kinds   
)

◆ TYPED_TEST_SUITE() [2/2]

TYPED_TEST_SUITE ( ExhaustiveDirectedUse  ,
Undirected_Kinds   
)