43 class KuratowskiWrapper;
166 virtual bool isPlanarDestructive(
Graph& g)
override;
190 return planarEmbedDestructive(G,list);
209 const bool onlyDifferent =
false);
220 const bool onlyDifferent =
false)
222 transform(sourceList, targetList, h.
original(), onlyDifferent);
237 bool planarEmbedDestructive(
241 bool bundles =
false,
242 bool limitStructures =
false,
243 bool randomDFSTree =
false,
244 bool avoidE2Minors =
true);
251 bool bundles =
false,
252 bool limitStructures =
false,
253 bool randomDFSTree =
false,
254 bool avoidE2Minors =
true)
256 return planarEmbedDestructive(g, output, static_cast<int>(embeddingGrade), bundles, limitStructures, randomDFSTree, avoidE2Minors);
275 bool bundles =
false,
276 bool limitStructures =
false,
277 bool randomDFSTree =
false,
278 bool avoidE2Minors =
true);
285 bool bundles =
false,
286 bool limitStructures =
false,
287 bool randomDFSTree =
false,
288 bool avoidE2Minors =
true)
290 return planarEmbed(g, output, static_cast<int>(embeddingGrade), bundles, limitStructures, randomDFSTree, avoidE2Minors);
308 bool bundles =
false,
309 bool limitStructures =
false,
310 bool randomDFSTree =
false,
311 bool avoidE2Minors =
true);
318 bool bundles =
false,
319 bool limitStructures =
false,
320 bool randomDFSTree =
false,
321 bool avoidE2Minors =
true)
323 return planarEmbed(h, output, static_cast<int>(embeddingGrade), bundles, limitStructures, randomDFSTree, avoidE2Minors);
const Graph & original() const
Returns a reference to the original graph.
Wrapper class used for preprocessing and valid invocation of the planarity test.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
int numberOfStructures()
The number of extracted Structures for statistical purposes.
void clear()
Deletes BoyerMyrvoldPlanar on heap.
EmbeddingGrade
Denotes the different embedding options.
bool planarEmbedDestructive(Graph &g, SList< KuratowskiWrapper > &output, BoyerMyrvoldPlanar::EmbeddingGrade embeddingGrade=BoyerMyrvoldPlanar::EmbeddingGrade::doNotFind, bool bundles=false, bool limitStructures=false, bool randomDFSTree=false, bool avoidE2Minors=true)
Returns an embedding, if g is planar and Kuratowski Subdivisions otherwise.
Module for planarity testing and planar embeddings.
Module for planarity testing and planar embeddings.
virtual bool planarEmbed(Graph &G) override
Returns true, if G is planar, false otherwise. If true, G contains a planar embedding.
Singly linked lists (maintaining the length of the list).
int nOfStructures
The number of extracted Structures for statistical purposes.
virtual bool planarEmbedPlanarGraph(Graph &G) override
Constructs a planar embedding of G. G has to be planar!
bool planarEmbed(Graph &G)
Returns true, if G is planar, false otherwise. If true is returned, G will be planarly embedded...
BoyerMyrvoldPlanar * pBMP
Class BoyerMyrvoldPlanar on heap.
Declaration of graph copy classes.
bool isPlanar(const Graph &G)
Returns true, if G is planar, false otherwise.
BoyerMyrvold()
Constructor.
bool planarEmbed(GraphCopySimple &h, SList< KuratowskiWrapper > &output, BoyerMyrvoldPlanar::EmbeddingGrade embeddingGrade=BoyerMyrvoldPlanar::EmbeddingGrade::doNotFind, bool bundles=false, bool limitStructures=false, bool randomDFSTree=false, bool avoidE2Minors=true)
Returns an embedding, if graph copy h is planar and Kuratowski Subdivisions otherwise.
Copies of graphs with mapping between nodes and edges.
bool planarEmbed(Graph &g, SList< KuratowskiWrapper > &output, BoyerMyrvoldPlanar::EmbeddingGrade embeddingGrade=BoyerMyrvoldPlanar::EmbeddingGrade::doNotFind, bool bundles=false, bool limitStructures=false, bool randomDFSTree=false, bool avoidE2Minors=true)
Returns an embedding, if g is planar and Kuratowski Subdivisions otherwise.
This class implements the extended BoyerMyrvold planarity embedding algorithm.
Declaration of the class BoyerMyrvoldPlanar.
The namespace for all OGDF objects.
~BoyerMyrvold()
Destructor.
Declaration of KuratowskiSubdivion class.
Wrapper-class for Kuratowski Subdivisions containing the minortype and edgelist.
void transform(const SList< KuratowskiWrapper > &sourceList, SList< KuratowskiSubdivision > &targetList, const GraphCopySimple &h, const bool onlyDifferent=false)
Transforms KuratowskiWrapper-List in KuratowskiSubdivision-List with respect to sieving constraints...