Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
PlanarLeafKey.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/Graph.h>
36
37#include <ostream>
38
39namespace ogdf {
40namespace booth_lueker {
41
42template<class X>
43class PlanarLeafKey : public PQLeafKey<edge, X, bool> {
44public:
45 explicit PlanarLeafKey(edge e) : PQLeafKey<edge, X, bool>(e) { }
46
47 virtual ~PlanarLeafKey() { }
48
49 std::ostream& print(std::ostream& os) {
50 int sId = this->m_userStructKey->source()->index();
51 int tId = this->m_userStructKey->target()->index();
52
53 os << " (" << sId << "," << tId << ")";
54
55 return os;
56 }
57};
58
59}
60}
Includes declaration of graph class.
Declaration and implementation of the class PQLeafKey.
Class for the representation of edges.
Definition Graph_d.h:364
node target() const
Returns the target node of the edge.
Definition Graph_d.h:402
node source() const
Returns the source node of the edge.
Definition Graph_d.h:399
int index() const
Returns the (unique) node index.
Definition Graph_d.h:275
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition PQLeafKey.h:84
edge m_userStructKey
The m_userStructKey has to be overloaded by the client.
Definition PQLeafKey.h:92
std::ostream & print(std::ostream &os)
The function print() is a virtual function, that can be overloaded by the user in order to print out ...
The namespace for all OGDF objects.