Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
39 namespace ogdf {
40 namespace booth_lueker {
41 
42 template<class X>
43 class PlanarLeafKey : public PQLeafKey<edge, X, bool> {
44 public:
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 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::PQLeafKey
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQInternalNode.h:40
ogdf::booth_lueker::PlanarLeafKey::print
std::ostream & print(std::ostream &os)
Definition: PlanarLeafKey.h:49
PQLeafKey.h
Declaration and implementation of the class PQLeafKey.
ogdf::booth_lueker::PlanarLeafKey::PlanarLeafKey
PlanarLeafKey(edge e)
Definition: PlanarLeafKey.h:45
ogdf::booth_lueker::PlanarLeafKey::~PlanarLeafKey
virtual ~PlanarLeafKey()
Definition: PlanarLeafKey.h:47
ogdf::EdgeElement
Class for the representation of edges.
Definition: Graph_d.h:363