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

The contract of the path searches, the components, the cut nodes and bridges, the spanning trees and the tests of acyclicity, connectivity, cycles and paths, with every kind of arc filter. More...

#include <set>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <gtest/gtest.h>
#include <tpl_graph.H>
#include <tpl_find_path.H>
#include <Bidirectional_BFS.H>
#include <tpl_components.H>
#include <tpl_cut_nodes.H>
#include <tpl_spanning_tree.H>
#include <tpl_test_acyclique.H>
#include <tpl_test_connectivity.H>
#include <tpl_test_cycle.H>
#include <tpl_test_path.H>
#include "graph_harness.H"
#include "graph_filter_catalog.H"
#include "graph_contract_matrix.H"
Include dependency graph for graph_contract_matrix_search_test.cc:

Go to the source code of this file.

Classes

class  ContractSearchAll< GT >
 
class  ContractSearchUndirected< GT >
 
class  ContractSearchDirected< GT >
 

Functions

 TYPED_TEST_SUITE (ContractSearchAll, All_Kinds)
 
 TYPED_TEST_SUITE (ContractSearchUndirected, Undirected_Kinds)
 
 TYPED_TEST_SUITE (ContractSearchDirected, Directed_Kinds)
 
 TYPED_TEST (ContractSearchAll, FindPathDepthFirst)
 
 TYPED_TEST (ContractSearchAll, FindPathBreadthFirst)
 
 TYPED_TEST (ContractSearchAll, DirectedFindPath)
 
 TYPED_TEST (ContractSearchUndirected, BidirectionalBFS)
 
 TYPED_TEST (ContractSearchDirected, BidirectionalBFSOutIn)
 
 TYPED_TEST (ContractSearchAll, BuildSubgraph)
 
 TYPED_TEST (ContractSearchAll, UnconnectedComponents)
 
 TYPED_TEST (ContractSearchUndirected, ComputeCutNodes)
 
 TYPED_TEST (ContractSearchUndirected, ComputeBridges)
 
 TYPED_TEST (ContractSearchUndirected, FindBridges)
 
 TYPED_TEST (ContractSearchAll, FindDepthFirstSpanningTree)
 
 TYPED_TEST (ContractSearchAll, FindBreadthFirstSpanningTree)
 
 TYPED_TEST (ContractSearchUndirected, IsGraphAcyclique)
 
 TYPED_TEST (ContractSearchUndirected, HasCycle)
 
 TYPED_TEST (ContractSearchUndirected, TestConnectivity)
 
 TYPED_TEST (ContractSearchAll, TestForCycle)
 
 TYPED_TEST (ContractSearchAll, TestForPath)
 

Detailed Description

The contract of the path searches, the components, the cut nodes and bridges, the spanning trees and the tests of acyclicity, connectivity, cycles and paths, with every kind of arc filter.

The ArcFilter concept of ah-graph-concepts.H asks a filter only to be a predicate on an arc. Each test calls every public entry point of one template of tpl_find_path.H, Bidirectional_BFS.H, tpl_components.H, tpl_cut_nodes.H, tpl_spanning_tree.H, tpl_test_acyclique.H, tpl_test_connectivity.H, tpl_test_cycle.H or tpl_test_path.H once, on a small graph of each kind that the template supports, with each filter of graph_filter_catalog.H and with Dft_Show_Arc, passed as an lvalue and as an rvalue where the template takes both, on a graph and on a const graph where it takes a const one. The graphs are such that the answer changes when the arc that the filters hide, number 2, is hidden, so that a check of the answer is a check that the filter is used.

The combinations that should compile and do not are left out here, by the trait of the filter that triggers each, and are the known failures of graph_contract_compile_check.cmake, which names them.

Definition in file graph_contract_matrix_search_test.cc.

Function Documentation

◆ TYPED_TEST() [1/17]

TYPED_TEST ( ContractSearchAll  ,
BuildSubgraph   
)

◆ TYPED_TEST() [2/17]

◆ TYPED_TEST() [3/17]

◆ TYPED_TEST() [4/17]

◆ TYPED_TEST() [5/17]

◆ TYPED_TEST() [6/17]

◆ TYPED_TEST() [7/17]

TYPED_TEST ( ContractSearchAll  ,
TestForCycle   
)

◆ TYPED_TEST() [8/17]

TYPED_TEST ( ContractSearchAll  ,
TestForPath   
)

◆ TYPED_TEST() [9/17]

◆ TYPED_TEST() [10/17]

◆ TYPED_TEST() [11/17]

◆ TYPED_TEST() [12/17]

TYPED_TEST ( ContractSearchUndirected  ,
ComputeBridges   
)

◆ TYPED_TEST() [13/17]

◆ TYPED_TEST() [14/17]

◆ TYPED_TEST() [15/17]

TYPED_TEST ( ContractSearchUndirected  ,
HasCycle   
)

◆ TYPED_TEST() [16/17]

TYPED_TEST ( ContractSearchUndirected  ,
IsGraphAcyclique   
)

◆ TYPED_TEST() [17/17]

TYPED_TEST ( ContractSearchUndirected  ,
TestConnectivity   
)

◆ TYPED_TEST_SUITE() [1/3]

TYPED_TEST_SUITE ( ContractSearchAll  ,
All_Kinds   
)

◆ TYPED_TEST_SUITE() [2/3]

TYPED_TEST_SUITE ( ContractSearchDirected  ,
Directed_Kinds   
)

◆ TYPED_TEST_SUITE() [3/3]

TYPED_TEST_SUITE ( ContractSearchUndirected  ,
Undirected_Kinds   
)