19using namespace oneplan_backtracking;
43 std::set<edge> originalEdges;
44 for (
adjEntry adj : crossingVertex->adjEntries) {
45 originalEdges.insert(planarization.
original(adj->theEdge()));
72 m_filters.emplace_back(
new BipartiteDensityFilter);
78 MyOneplanSolver mySolver;
79 OGDF_ASSERT(mySolver.testOnePlanarity(K45) == ReturnType::NoFeasibleSolution);
Includes declaration of graph class.
Decralation of GraphElement and GraphList classes.
Declaration and implementation of NodeSet, EdgeSet, and AdjEntrySet classes.
Declaration of doubly linked lists and iterators.
Declares base class for all module types.
The main class of the 1-Planarity backtracker.
Declaration of the OnePlanarization class.
Filters for partial solutions in backtracking for the 1-Planarity problem.
Basic declarations, included by all source files.
Class for adjacency list elements.
const Graph & original() const
Returns a reference to the original graph.
Data type for general directed graphs (adjacency list representation).
int numberOfNodes() const
Returns the number of nodes in the graph.
int numberOfEdges() const
Returns the number of edges in the graph.
ReturnType
The return type of a module.
Class for the representation of nodes.
int size() const
Returns the number of elements in this set.
A backtracking implementation for the 1-Planarity problem.
Module::ReturnType testOnePlanarity(const Graph &G, OnePlanarization *out=nullptr)
Tests whether G is 1-planar.
Module::ReturnType testNICPlanarity(const Graph &G, OnePlanarization *out=nullptr)
Tests whether G is NIC-Planar.
Module::ReturnType testICPlanarity(const Graph &G, OnePlanarization *out=nullptr)
Tests whether G is IC-Planar.
The graph corresponding to a partial solution for the 1-Planarity problem.
const NodeSet & crossingVertices() const
Returns the set of all crossing vertices in the graph.
const EdgeSet & kiteEdges() const
Returns the set of all kite edges in the graph.
Interface of filters for partial solutions for 1-Planarity.
virtual bool canCut(OnePlanarization &pl)=0
Returns true if the partial solution represented by pl can be classified as non-realizable,...
Declaration of deterministic graph generators.
Declaration of extended graph algorithms.
bool planarEmbed(Graph &G)
Returns true, if G is planar, false otherwise. If true is returned, G will be planarly embedded.
bool isPlanar(const Graph &G)
Returns true, if G is planar, false otherwise.
bool isBipartite(const Graph &G, NodeArray< bool > &color)
Checks whether a graph is bipartite.
void completeBipartiteGraph(Graph &G, int n, int m)
Creates the complete bipartite graph K_{n,m}.
void completeGraph(Graph &G, int n)
Creates the complete graph K_n.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
The namespace for all OGDF objects.
Declaration of simple graph algorithms.