|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Connectivity, cycles, bipartition, matchings, spanning trees and Euler on every small multigraph, against the oracles. More...
#include <set>#include <stdexcept>#include <string>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <tpl_components.H>#include <tpl_graph_utils.H>#include <tpl_cut_nodes.H>#include <tpl_test_acyclique.H>#include <tpl_bipartite.H>#include <tpl_spanning_tree.H>#include <Blossom.H>#include <eulerian.H>#include "graph_harness.H"#include "graph_oracles.H"Go to the source code of this file.
Classes | |
| class | ExhaustiveConnectivity< GT > |
Functions | |
| TYPED_TEST_SUITE (ExhaustiveConnectivity, Undirected_Kinds) | |
| TYPED_TEST (ExhaustiveConnectivity, ComponentsMatchTheOracle) | |
| TYPED_TEST (ExhaustiveConnectivity, SubgraphsMatchTheOracle) | |
| TYPED_TEST (ExhaustiveConnectivity, CutNodesAndBridgesMatchTheOracle) | |
| TYPED_TEST (ExhaustiveConnectivity, CyclesMatchTheOracle) | |
| TYPED_TEST (ExhaustiveConnectivity, BipartitionAndMatchingsMatchTheOracle) | |
| TYPED_TEST (ExhaustiveConnectivity, SpanningTreesCoverTheComponentOfTheStart) | |
| TYPED_TEST (ExhaustiveConnectivity, EulerMatchesTheOracle) | |
Connectivity, cycles, bipartition, matchings, spanning trees and Euler on every small multigraph, against the oracles.
Each test runs one family of algorithms over every multigraph 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 arcs and each arc inserted from either end, on the three kinds of graph that are not directed, and compares each answer with graph_oracles.H.
Definition in file graph_exhaustive_connectivity_test.cc.
| TYPED_TEST | ( | ExhaustiveConnectivity | , |
| BipartitionAndMatchingsMatchTheOracle | |||
| ) |
Definition at line 337 of file graph_exhaustive_connectivity_test.cc.
References Aleph::and, arcs, graph_harness::Spec::arcs, Aleph::blossom_maximum_cardinality_matching(), check(), Aleph::compute_bipartite(), Aleph::compute_maximum_cardinality_bipartite_matching(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, LocateFunctions< Container, Type >::get_it(), Aleph::hopcroft_karp_matching(), graph_oracles::is_bipartite(), graph_oracles::is_matching(), l, m, graph_oracles::max_matching(), graph_harness::Spec::n, graph_harness::num(), r, graph_harness::Check::run(), Aleph::DynDlist< T >::size(), and Aleph::size().
| TYPED_TEST | ( | ExhaustiveConnectivity | , |
| ComponentsMatchTheOracle | |||
| ) |
Definition at line 145 of file graph_exhaustive_connectivity_test.cc.
References Aleph::and, arcs, graph_oracles::components(), Aleph::count(), Aleph::Unconnected_Components< GT, SA >::count_components(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, LocateFunctions< Container, Type >::get_it(), Aleph::inconnected_components(), l, graph_harness::Spec::n, graph_harness::Spec::num_arcs(), graph_harness::Check::run(), Aleph::DynList< T >::size(), and Aleph::test_connectivity().
| TYPED_TEST | ( | ExhaustiveConnectivity | , |
| CutNodesAndBridgesMatchTheOracle | |||
| ) |
Definition at line 255 of file graph_exhaustive_connectivity_test.cc.
References graph_oracles::bridges(), Aleph::compute_cut_nodes(), graph_oracles::cut_nodes(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), Aleph::find_bridges(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, l, graph_harness::Built< GT >::nodes, graph_harness::num(), and graph_harness::Check::run().
| TYPED_TEST | ( | ExhaustiveConnectivity | , |
| CyclesMatchTheOracle | |||
| ) |
Definition at line 302 of file graph_exhaustive_connectivity_test.cc.
References graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, Aleph::has_cycle(), graph_oracles::has_cycle(), Aleph::is_graph_acyclique(), graph_harness::Built< GT >::nodes, graph_oracles::on_cycle(), graph_harness::Check::run(), and Aleph::test_for_cycle().
| TYPED_TEST | ( | ExhaustiveConnectivity | , |
| EulerMatchesTheOracle | |||
| ) |
Definition at line 471 of file graph_exhaustive_connectivity_test.cc.
References Aleph::and, arcs, graph_harness::Spec::arcs, graph_harness::domain(), graph_oracles::euler_class(), graph_harness::Check::expect(), graph_harness::Check::fail(), Aleph::Find_Eulerian_Path< GT, SN, SA >::find_node_sequence(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, LocateFunctions< Container, Type >::get_it(), graph_oracles::is_euler_walk(), l, nodes, graph_harness::num(), r, graph_harness::Check::run(), and Aleph::DynList< T >::size().
| TYPED_TEST | ( | ExhaustiveConnectivity | , |
| SpanningTreesCoverTheComponentOfTheStart | |||
| ) |
Definition at line 420 of file graph_exhaustive_connectivity_test.cc.
References Aleph::and, check(), graph_oracles::component_of(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::Dlink::insert(), graph_harness::Spec::n, NODE_COOKIE, graph_harness::Built< GT >::nodes, graph_harness::num(), and Aleph::size().
| TYPED_TEST | ( | ExhaustiveConnectivity | , |
| SubgraphsMatchTheOracle | |||
| ) |
Definition at line 199 of file graph_exhaustive_connectivity_test.cc.
References ARC_COOKIE, graph_harness::Spec::arcs, graph_harness::Built< GT >::arcs, check(), graph_oracles::component_of(), graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), l, graph_harness::Spec::n, NODE_COOKIE, graph_harness::Built< GT >::nodes, graph_harness::Check::run(), and Aleph::DynList< T >::size().
| TYPED_TEST_SUITE | ( | ExhaustiveConnectivity | , |
| Undirected_Kinds | |||
| ) |