Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

PlanarSubgraphPQTree.h
Go to the documentation of this file.
1 
36 #pragma once
37 
38 #include <ogdf/basic/Graph.h>
39 #include <ogdf/basic/basic.h>
43 
44 namespace ogdf {
45 template<class E>
46 class SList;
47 template<class E>
48 class SListPure;
49 template<class T, class X, class Y>
50 class PQLeafKey;
51 
53 public:
55 
57 
58  virtual ~PlanarSubgraphPQTree() { }
59 
61  virtual int Initialize(SListPure<PlanarLeafKey*>& leafKeys);
62 
65  }
66 
68  void ReplaceRoot(SListPure<PlanarLeafKey*>& leafKeys);
69 
71  virtual bool Reduction(SListPure<PlanarLeafKey*>& leafKeys,
72  SList<PQLeafKey<edge, whaInfo*, bool>*>& eliminatedKeys);
73 
76  }
77 
78 private:
80  void ReplaceFullRoot(SListPure<PlanarLeafKey*>& leafKeys);
81 
83  void ReplacePartialRoot(SListPure<PlanarLeafKey*>& leafKeys);
84 
104  void removeEliminatedLeaves(SList<PQLeafKey<edge, whaInfo*, bool>*>& eliminatedKeys);
105 };
106 
107 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::PlanarSubgraphPQTree::Initialize
int Initialize(SListPure< PQLeafKey< edge, whaInfo *, bool > * > &leafKeys) override
Initializes the PQ-tree with a set of elements.
Definition: PlanarSubgraphPQTree.h:63
ogdf::PQLeafKey
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQInternalNode.h:40
ogdf::SList
Singly linked lists (maintaining the length of the list).
Definition: SList.h:845
ogdf::PlanarSubgraphPQTree::PlanarSubgraphPQTree
PlanarSubgraphPQTree()
Definition: PlanarSubgraphPQTree.h:56
ogdf::PlanarSubgraphPQTree::~PlanarSubgraphPQTree
virtual ~PlanarSubgraphPQTree()
Definition: PlanarSubgraphPQTree.h:58
ogdf::SListPure
Singly linked lists.
Definition: SList.h:52
ogdf::PQTree< T, whaInfo *, Y >::Initialize
virtual int Initialize(SListPure< PQLeafKey< T, whaInfo *, Y > * > &leafKeys)
Initializes the PQ-tree with a set of elements.
Definition: PQTree.h:1916
ogdf::PlanarSubgraphPQTree
Definition: PlanarSubgraphPQTree.h:52
whaInfo.h
Declaration of class whaInfo.
ogdf::PlanarSubgraphPQTree::Reduction
bool Reduction(SListPure< PQLeafKey< edge, whaInfo *, bool > * > &leafKeys) override
Tests whether permissible permutations of the elements of U exist such that the elements of a subset ...
Definition: PlanarSubgraphPQTree.h:74
ogdf::MaxSequencePQTree
The class template MaxSequencePQTree is designed to compute a maximal consecutive sequence of pertine...
Definition: MaxSequencePQTree.h:104
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
MaxSequencePQTree.h
Declaration and definition of the class MaxSequencePQTree.
ogdf::EdgeElement
Class for the representation of edges.
Definition: Graph_d.h:363
ogdf::PQTree< T, whaInfo *, Y >::Reduction
virtual bool Reduction(SListPure< PQLeafKey< T, whaInfo *, Y > * > &leafKeys)
Tests whether permissible permutations of the elements of U exist such that the elements of a subset ...
Definition: PQTree.h:2237
ogdf::booth_lueker::PlanarLeafKey
Definition: EmbedPQTree.h:40
PlanarLeafKey.h
Declaration of class PlanarLeafKey.