Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

PlanarSubgraphPQTree.h
Go to the documentation of this file.
1 
36 #pragma once
37 
38 #include <ogdf/basic/Graph.h>
39 #include <ogdf/basic/SList.h>
40 #include <ogdf/basic/PQTree.h>
43 
44 namespace ogdf {
45 
47 public:
49 
51 
52  virtual ~PlanarSubgraphPQTree() { }
53 
55  virtual int Initialize(SListPure<PlanarLeafKey*> &leafKeys);
56 
59  }
60 
62  void ReplaceRoot(SListPure<PlanarLeafKey*> &leafKeys);
63 
65  virtual bool Reduction(
66  SListPure<PlanarLeafKey*> &leafKeys,
67  SList<PQLeafKey<edge,whaInfo*,bool>*> &eliminatedKeys);
68 
69  bool Reduction(SListPure<PQLeafKey<edge,whaInfo*,bool>*> &leafKeys) override {
71  }
72 
73 private:
75  void ReplaceFullRoot(SListPure<PlanarLeafKey*> &leafKeys);
76 
78  void ReplacePartialRoot(SListPure<PlanarLeafKey*> &leafKeys);
79 
99  void removeEliminatedLeaves(SList<PQLeafKey<edge,whaInfo*,bool>*> &eliminatedKeys);
100 };
101 
102 }
Declaration of singly linked lists and iterators.
#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
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:2387
Declaration and definition of the class MaxSequencePQTree.
virtual int Initialize(SListPure< PQLeafKey< T, whaInfo *, Y > * > &leafKeys)
Initializes the PQ-tree with a set of elements.
Definition: PQTree.h:2032
Declaration and implementation of the class PQTree.
Declaration of class PlanarLeafKey.
Singly linked lists (maintaining the length of the list).
Definition: SList.h:773
Class for the representation of edges.
Definition: Graph_d.h:292
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 ...
int Initialize(SListPure< PQLeafKey< edge, whaInfo *, bool > *> &leafKeys) override
Initializes the PQ-tree with a set of elements.
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQLeafKey.h:86
Includes declaration of graph class.
The namespace for all OGDF objects.
The class template MaxSequencePQTree is designed to compute a maximal consecutive sequence of pertine...