|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The planarity test on every small graph, against Kuratowski. More...
#include <algorithm>#include <map>#include <random>#include <set>#include <string>#include <utility>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <Planarity_Test.H>#include "graph_filter_catalog.H"#include "graph_harness.H"#include "graph_oracles.H"Go to the source code of this file.
Classes | |
| class | ExhaustivePlanarity< GT > |
Functions | |
| TYPED_TEST_SUITE (ExhaustivePlanarity, All_Kinds) | |
| TYPED_TEST (ExhaustivePlanarity, SimpleGraphsMatchKuratowski) | |
| TYPED_TEST (ExhaustivePlanarity, MultigraphsAndHiddenArcsMatchKuratowski) | |
The planarity test on every small graph, against Kuratowski.
On 6 nodes or less, a graph is not planar if and only if it has, as a subgraph, K5, K5 with an edge split by a sixth node, or K3,3: the oracle looks for them. The test runs on every simple graph of up to 5 nodes, on a sample of the simple graphs of 6 with 8 arcs or more (all of them with ALEPH_GRAPH_HARNESS=heavy), on every multigraph of up to 3 nodes and 3 arcs with each set of hidden arcs, and on K5 and K3,3 with sets of hidden arcs, on the six kinds of graph. Besides the answer, it checks the embedding of a planar graph, by its faces and Euler's formula in each component, and the certificate of one that is not, by its paths, with checks of its own.
Definition in file graph_exhaustive_planarity_test.cc.
| TYPED_TEST | ( | ExhaustivePlanarity | , |
| MultigraphsAndHiddenArcsMatchKuratowski | |||
| ) |
Definition at line 425 of file graph_exhaustive_planarity_test.cc.
References graph_harness::domain(), graph_harness::for_each_spec(), GraphCommon< GT, Node, Arc >::is_digraph(), graph_harness::Spec::n, and graph_harness::Spec::num_arcs().
| TYPED_TEST | ( | ExhaustivePlanarity | , |
| SimpleGraphsMatchKuratowski | |||
| ) |
Definition at line 395 of file graph_exhaustive_planarity_test.cc.
References Aleph::and, graph_harness::Check::expect(), graph_harness::for_each_simple_graph(), graph_harness::heavy(), graph_harness::Spec::num_arcs(), rng, and seed.
| TYPED_TEST_SUITE | ( | ExhaustivePlanarity | , |
| All_Kinds | |||
| ) |