Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

PlanarPQTree.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/SList.h>
36 #include <ogdf/basic/PQTree.h>
39 
40 namespace ogdf {
41 namespace booth_lueker {
42 
43 class PlanarPQTree: public PQTree<edge,IndInfo*,bool> {
44 public:
45  PlanarPQTree() : PQTree<edge,IndInfo*,bool>() { }
46 
47  virtual ~PlanarPQTree() { }
48 
50  virtual void emptyAllPertinentNodes() override;
51 
53  virtual int Initialize(SListPure<PlanarLeafKey<IndInfo*>*> &leafKeys);
54 
57  }
58 
61 
63  virtual bool Reduction(SListPure<PlanarLeafKey<IndInfo*>*> &leafKeys);
64 
65  bool Reduction(SListPure<PQLeafKey<edge,IndInfo*,bool>*> &leafKeys) override {
67  }
68 
69 private:
70 
73 
76 };
77 
78 }
79 }
Declaration of singly linked lists and iterators.
Singly linked lists.
Definition: SList.h:38
virtual bool Reduction(SListPure< PQLeafKey< T, X, Y > *> &leafKeys)
Tests whether permissible permutations of the elements of U exist such that the elements of a subset ...
Definition: PQTree.h:2395
virtual int Initialize(SListPure< PQLeafKey< T, X, Y > *> &leafKeys)
Initializes the PQ-tree with a set of elements.
Definition: PQTree.h:2040
Declaration and implementation of the class PQTree.
Declaration of the class EmbedKey.
Declaration of class PlanarLeafKey.
int Initialize(SListPure< PQLeafKey< edge, IndInfo *, bool > *> &leafKeys) override
Definition: PlanarPQTree.h:55
void ReplaceFullRoot(SListPure< PlanarLeafKey< IndInfo *> *> &leafKeys)
Replaces a pertinet subtree by a set of new leaves if the root is full.
virtual void emptyAllPertinentNodes() override
Does a clean up after a reduction.
virtual bool Reduction(SListPure< PlanarLeafKey< IndInfo *> *> &leafKeys)
Reduces a set of leaves.
void ReplacePartialRoot(SListPure< PlanarLeafKey< IndInfo *> *> &leafKeys)
Replaces a pertinet subtree by a set of new leaves if the root is partial.
Class for the representation of edges.
Definition: Graph_d.h:291
bool Reduction(SListPure< PQLeafKey< edge, IndInfo *, bool > *> &leafKeys) override
Definition: PlanarPQTree.h:65
virtual int Initialize(SListPure< PlanarLeafKey< IndInfo *> *> &leafKeys)
Initializes a new PQ-tree with a set of leaves.
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQLeafKey.h:86
Includes declaration of graph class.
void ReplaceRoot(SListPure< PlanarLeafKey< IndInfo *> *> &leafKeys)
Replaces the pertinent subtree by a set of new leaves.
The namespace for all OGDF objects.