Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

BoothLueker.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/EdgeArray.h>
36 #include <ogdf/basic/NodeArray.h>
37 #include <ogdf/basic/SList.h>
39 
40 namespace ogdf {
41 
43 
52 
53 public:
54 
57 
59  virtual bool isPlanarDestructive(Graph &G) override;
60 
62  virtual bool isPlanar(const Graph &G) override;
63 
65  virtual bool planarEmbed(Graph &G) override {
66  return preparation(G,true);
67  }
68 
70 
74  virtual bool planarEmbedPlanarGraph(Graph &G) override {
75  return preparation(G,true);
76  }
77 
78 private:
79 
81  bool preparation(Graph &G, bool embed);
82 
88  bool doTest(Graph &G,NodeArray<int> &numbering);
89 
95  bool doEmbed(Graph &G,
96  NodeArray<int> &numbering,
97  EdgeArray<edge> &backTableEdges,
98  EdgeArray<edge> &forwardTableEdges);
99 
100  // Used by doEmbed. Computes an entire embedding from an
101  // upward embedding.
102  void entireEmbed(Graph &G,
103  NodeArray<SListPure<adjEntry> > &entireEmbedding,
104  NodeArray<SListIterator<adjEntry> > &adjMarker,
105  NodeArray<bool> &mark,
106  node v);
107 
108  void prepareParallelEdges(Graph &G);
109 
110 
111  //private Members for handling parallel edges
115 };
116 
117 }
Declaration of singly linked lists and iterators.
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Singly linked lists.
Definition: SList.h:38
EdgeArray< ListPure< edge > > m_parallelEdges
Definition: BoothLueker.h:112
Module for planarity testing and planar embeddings.
Encapsulates a pointer to an ogdf::SList element.
Definition: SList.h:40
Module for planarity testing and planar embeddings.
Dynamic arrays indexed with edges.
Definition: EdgeArray.h:112
virtual bool planarEmbedPlanarGraph(Graph &G) override
Returns true, if G is planar, false otherwise. If true, G contains a planar embedding.
Definition: BoothLueker.h:74
Declaration and implementation of EdgeArray class.
bool isPlanar(const Graph &G)
Returns true, if G is planar, false otherwise.
Class for the representation of nodes.
Definition: Graph_d.h:167
Declaration and implementation of NodeArray class.
virtual bool planarEmbed(Graph &G) override
Returns true, if G is planar, false otherwise. If true, G contains a planar embedding.
Definition: BoothLueker.h:65
Booth-Lueker planarity test.
Definition: BoothLueker.h:51
The namespace for all OGDF objects.
EdgeArray< bool > m_isParallel
Definition: BoothLueker.h:113