|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The contract matrix of the structure algorithms: strong components, topological sorts, dominators, connectivity, minimum cuts, planarity and coloring, with every kind of graph, arc filter and constness that they take. More...
#include <set>#include <string>#include <type_traits>#include <utility>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <Tarjan.H>#include <topological_sort.H>#include <Dominators.H>#include <tpl_kgraph.H>#include <Karger.H>#include <Stoer_Wagner.H>#include <Planarity_Test.H>#include <Graph_Coloring.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 | ContractStructureDigraph< GT > |
| class | ContractStructureGraph< GT > |
| class | ContractStructureAllKinds< GT > |
The contract matrix of the structure algorithms: strong components, topological sorts, dominators, connectivity, minimum cuts, planarity and coloring, with every kind of graph, arc filter and constness that they take.
Each test instantiates one template of Tarjan.H, topological_sort.H, Dominators.H, tpl_kgraph.H, Karger.H, Stoer_Wagner.H, Planarity_Test.H or Graph_Coloring.H with each filter of graph_filter_catalog.H and with Dft_Show_Arc, on each kind of graph that its documentation supports, and on a const graph where it takes one, and calls each of its public entry points once, on a small graph whose answer changes when the filter hides arc number 2. Where a template also builds SA() when it is given no filter object, that form runs too, with the filters that have a default constructor, which hide nothing: its answer is that of the whole graph.
Definition in file graph_contract_matrix_structure_test.cc.
| TYPED_TEST | ( | ContractStructureAllKinds | , |
| ColoringFunctionsAndClasses | |||
| ) |
Definition at line 698 of file graph_contract_matrix_structure_test.cc.
References graph_contract_matrix::for_each_constness(), and graph_harness::Built< GT >::g.
| TYPED_TEST | ( | ContractStructureAllKinds | , |
| PlanarityTestAndIsPlanarGraph | |||
| ) |
Definition at line 659 of file graph_contract_matrix_structure_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, and h.
| TYPED_TEST | ( | ContractStructureDigraph | , |
| ComputeCycleInDigraph | |||
| ) |
Definition at line 224 of file graph_contract_matrix_structure_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractStructureDigraph | , |
| DominatorFunctions | |||
| ) |
Definition at line 380 of file graph_contract_matrix_structure_test.cc.
References Aleph::build_dominator_tree(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::get_num_arcs(), h, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractStructureDigraph | , |
| LengauerTarjanDominators | |||
| ) |
Definition at line 327 of file graph_contract_matrix_structure_test.cc.
References Aleph::Lengauer_Tarjan_Dominators< GT, SA >::build_tree(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::compute_idom(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::dominance_frontiers(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::dominates(), graph_harness::Built< GT >::g, Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_filter(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_graph(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_idom(), GraphCommon< GT, Node, Arc >::get_num_arcs(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_num_reachable(), Aleph::Lengauer_Tarjan_Dominators< GT, SA >::get_root(), h, Aleph::Lengauer_Tarjan_Dominators< GT, SA >::has_computation(), and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractStructureDigraph | , |
| LengauerTarjanPostDominators | |||
| ) |
Definition at line 409 of file graph_contract_matrix_structure_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractStructureDigraph | , |
| NoexceptOnlyIfTheFilterIs | |||
| ) |
Definition at line 487 of file graph_contract_matrix_structure_test.cc.
| TYPED_TEST | ( | ContractStructureDigraph | , |
| PostDominatorFunctions | |||
| ) |
Definition at line 462 of file graph_contract_matrix_structure_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, and graph_harness::Built< GT >::nodes.
| TYPED_TEST | ( | ContractStructureDigraph | , |
| QTopologicalSort | |||
| ) |
Definition at line 286 of file graph_contract_matrix_structure_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, Aleph::DynList< T >::size(), and Aleph::DynDlist< T >::size().
| TYPED_TEST | ( | ContractStructureDigraph | , |
| TarjanConnectedComponents | |||
| ) |
Definition at line 148 of file graph_contract_matrix_structure_test.cc.
References Aleph::Path< GT >::arcs(), graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, Aleph::Tarjan_Connected_Components< GT, Itor, SA >::has_cycle(), Aleph::Tarjan_Connected_Components< GT, Itor, SA >::is_dag(), graph_harness::Built< GT >::nodes, Aleph::DynList< T >::size(), Aleph::DynDlist< T >::size(), and Aleph::size().
| TYPED_TEST | ( | ContractStructureDigraph | , |
| TopologicalSort | |||
| ) |
Definition at line 250 of file graph_contract_matrix_structure_test.cc.
References graph_contract_matrix::for_each_constness(), graph_harness::Built< GT >::g, h, and Aleph::DynDlist< T >::size().
| TYPED_TEST | ( | ContractStructureGraph | , |
| EdgeAndVertexConnectivity | |||
| ) |
Definition at line 509 of file graph_contract_matrix_structure_test.cc.
References graph_harness::Built< GT >::g, k, l, l2, l3, Aleph::min_cut(), r, Aleph::DynList< T >::size(), and Aleph::DynDlist< T >::size().
| TYPED_TEST | ( | ContractStructureGraph | , |
| KargerMinCut | |||
| ) |
Definition at line 552 of file graph_contract_matrix_structure_test.cc.
References Aleph::Karger_Min_Cut< GT, SA >::compute_min_cut_size(), Aleph::count(), Aleph::Karger_Min_Cut< GT, SA >::fast(), graph_harness::Built< GT >::g, Aleph::Karger_Min_Cut< GT, SA >::get_seed(), h, graph_contract_matrix::Hidden, Aleph::Karger_Min_Cut< GT, SA >::reseed(), and Aleph::DynList< T >::size().
| TYPED_TEST | ( | ContractStructureGraph | , |
| NoexceptOnlyIfTheFilterIs | |||
| ) |
Definition at line 640 of file graph_contract_matrix_structure_test.cc.
| TYPED_TEST | ( | ContractStructureGraph | , |
| StoerWagnerMinCut | |||
| ) |
Definition at line 605 of file graph_contract_matrix_structure_test.cc.
References graph_harness::Built< GT >::g, Aleph::Stoer_Wagner_Min_Cut< GT, Distance, SA >::min_cut_weight(), and Aleph::DynList< T >::size().
| TYPED_TEST_SUITE | ( | ContractStructureAllKinds | , |
| All_Kinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ContractStructureDigraph | , |
| Directed_Kinds | |||
| ) |
| TYPED_TEST_SUITE | ( | ContractStructureGraph | , |
| Undirected_Kinds | |||
| ) |