42class EdgePairPartition;
101 cp.
init(*
reinterpret_cast<const Graph*
>(
this));
102 for (
edge e : m_freeEdges) {
108 using GraphCopy::init;
Includes declaration of graph class.
Declaration of graph copy classes.
Declaration and implementation of NodeSet, EdgeSet, and AdjEntrySet classes.
Declaration of doubly linked lists and iterators.
Basic declarations, included by all source files.
Class for the representation of edges.
void init(const Graph &G)
Re-initializes the copy using G, creating copies for all nodes and edges in G.
Copies of graphs supporting edge splitting.
edge copy(edge e) const override
Returns the first edge in the list of edges corresponding to edge e.
void delEdge(edge e) override
Removes edge e and clears the list of edges corresponding to e's original edge.
Data type for general directed graphs (adjacency list representation).
A partial solution for a 1-Planarity instance, representing a node in the backtracking tree.
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.
bool isPlanar() const
Returns true if the graph is planar and thus represents a solution.
NodeSet m_crossingVertices
void init(const EdgePairPartition *ep)
Re-initializes the graph with ep.
NodeSet m_saturatedVertices
const EdgeSet & crossingEdges() const
Returns the set of all edges that are incident to a crossing vertex.
const EdgeSet & freeEdges() const
Returns the set of all edges that may still cross some other edge.
OnePlanarization(const EdgePairPartition *ep)
Associates the graph with ep and computes the planarization.
void getSaturatedSubgraph(GraphCopy &cp) const
Computes the subgraph induced by uncrossable edges.
const EdgeSet & remainingEdges() const
Returns the set of all uncrossable edges that are neither crossing edges nor kite edges.
const EdgePairPartition * getEdgePairPartition() const
Returns the associated EdgePairPartition.
OnePlanarization()=default
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Declaration of extended graph algorithms.
bool isPlanar(const Graph &G)
Returns true, if G is planar, false otherwise.