|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
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"Go to the source code of this file.
Classes | |
| class | ContractSearchAll< GT > |
| class | ContractSearchUndirected< GT > |
| class | ContractSearchDirected< GT > |
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.
| TYPED_TEST | ( | ContractSearchAll | , |
| BuildSubgraph | |||
| ) |
Definition at line 355 of file graph_contract_matrix_search_test.cc.
References arcs, graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and nodes.
| TYPED_TEST | ( | ContractSearchAll | , |
| DirectedFindPath | |||
| ) |
Definition at line 254 of file graph_contract_matrix_search_test.cc.
References Aleph::Directed_Find_Path< GT, Itor, SA >::bfs(), Aleph::copy(), Aleph::Directed_Find_Path< GT, Itor, SA >::dfs(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractSearchAll | , |
| FindBreadthFirstSpanningTree | |||
| ) |
Definition at line 625 of file graph_contract_matrix_search_test.cc.
References Aleph::count(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), graph_contract_matrix::Hidden, GraphCommon< GT, Node, Arc >::is_digraph(), nodes, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractSearchAll | , |
| FindDepthFirstSpanningTree | |||
| ) |
Definition at line 567 of file graph_contract_matrix_search_test.cc.
References Aleph::count(), graph_harness::Built< GT >::g, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::get_first_node(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), graph_contract_matrix::Hidden, GraphCommon< GT, Node, Arc >::is_digraph(), graph_harness::Built< GT >::nodes, graph_harness::num(), and root().
| TYPED_TEST | ( | ContractSearchAll | , |
| FindPathBreadthFirst | |||
| ) |
Definition at line 222 of file graph_contract_matrix_search_test.cc.
References Aleph::copy(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractSearchAll | , |
| FindPathDepthFirst | |||
| ) |
Definition at line 189 of file graph_contract_matrix_search_test.cc.
References Aleph::copy(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractSearchAll | , |
| TestForCycle | |||
| ) |
Definition at line 742 of file graph_contract_matrix_search_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractSearchAll | , |
| TestForPath | |||
| ) |
Definition at line 764 of file graph_contract_matrix_search_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractSearchAll | , |
| UnconnectedComponents | |||
| ) |
Definition at line 401 of file graph_contract_matrix_search_test.cc.
References arcs, Aleph::count(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, graph_contract_matrix::Hidden, and Aleph::DynList< T >::size().
| TYPED_TEST | ( | ContractSearchDirected | , |
| BidirectionalBFSOutIn | |||
| ) |
Definition at line 321 of file graph_contract_matrix_search_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractSearchUndirected | , |
| BidirectionalBFS | |||
| ) |
Definition at line 287 of file graph_contract_matrix_search_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractSearchUndirected | , |
| ComputeBridges | |||
| ) |
Definition at line 520 of file graph_contract_matrix_search_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractSearchUndirected | , |
| ComputeCutNodes | |||
| ) |
Definition at line 466 of file graph_contract_matrix_search_test.cc.
References Aleph::Compute_Cut_Nodes< GT, SA >::compute_blocks(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, Aleph::HTList::is_empty(), l, and Aleph::DynDlist< T >::size().
| TYPED_TEST | ( | ContractSearchUndirected | , |
| FindBridges | |||
| ) |
Definition at line 546 of file graph_contract_matrix_search_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractSearchUndirected | , |
| HasCycle | |||
| ) |
Definition at line 693 of file graph_contract_matrix_search_test.cc.
References Aleph::copy(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractSearchUndirected | , |
| IsGraphAcyclique | |||
| ) |
Definition at line 667 of file graph_contract_matrix_search_test.cc.
References Aleph::copy(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractSearchUndirected | , |
| TestConnectivity | |||
| ) |
Definition at line 719 of file graph_contract_matrix_search_test.cc.
References Aleph::copy(), graph_harness::Built< GT >::g, and test().
| TYPED_TEST_SUITE | ( | ContractSearchAll | , |
| All_Kinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ContractSearchDirected | , |
| Directed_Kinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ContractSearchUndirected | , |
| Undirected_Kinds | |||
| ) |