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

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"
Include dependency graph for graph_exhaustive_planarity_test.cc:

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)
 

Detailed Description

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.

Function Documentation

◆ TYPED_TEST() [1/2]

◆ TYPED_TEST() [2/2]

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( ExhaustivePlanarity  ,
All_Kinds   
)