Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ClusterKuratowskiConstraint.h
Go to the documentation of this file.
1 
38 #pragma once
39 
40 #include <ogdf/basic/Graph.h>
41 #include <ogdf/basic/List.h>
44 
45 #include <ogdf/external/abacus.h>
46 
47 #include <ostream>
48 
49 namespace ogdf {
50 template<class E>
51 class SListPure;
52 
53 namespace cluster_planarity {
54 
56 public:
58 
60 
61  // Computes and returns the coefficient for the given variable
62  virtual double coeff(const abacus::Variable* v) const override;
63 
64  void printMe(std::ostream& out) const {
65  out << "[KuraCon: ";
66  for (const NodePair& p : m_subdivision) {
67  out << p << ",";
68  }
69  out << "]";
70  }
71 
72 private:
73  // The subdivision containing edges forming a SubGraph that is not planar
75 };
76 
77 }
78 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
abacus.h
Includes Abacus.
ogdf::NodePair
Definition: Graph_d.h:2109
ogdf::cluster_planarity::ClusterKuratowskiConstraint::ClusterKuratowskiConstraint
ClusterKuratowskiConstraint(abacus::Master *master, int nEdges, SListPure< NodePair > &ks)
ogdf::cluster_planarity::ClusterKuratowskiConstraint
Definition: ClusterKuratowskiConstraint.h:55
EdgeVar.h
Declaration of the variable class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph prob...
ogdf::cluster_planarity::ClusterKuratowskiConstraint::~ClusterKuratowskiConstraint
virtual ~ClusterKuratowskiConstraint()
ogdf::cluster_planarity::ClusterKuratowskiConstraint::coeff
virtual double coeff(const abacus::Variable *v) const override
Returns the coefficient of the variable v in the constraint.
ogdf::SListPure
Singly linked lists.
Definition: SList.h:52
abacus::Variable
Forms the virtual base class for all possible variables given in pool format.
Definition: variable.h:59
ogdf::List
Doubly linked lists (maintaining the length of the list).
Definition: DfsMakeBiconnected.h:40
ogdf::cluster_planarity::ClusterKuratowskiConstraint::printMe
void printMe(std::ostream &out) const
Definition: ClusterKuratowskiConstraint.h:64
abacus::Constraint
Forms the virtual base class for all possible constraints given in pool format.
Definition: constraint.h:56
basics.h
Declaration of the master class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph proble...
ogdf::cluster_planarity::ClusterKuratowskiConstraint::m_subdivision
List< NodePair > m_subdivision
Definition: ClusterKuratowskiConstraint.h:74
List.h
Declaration of doubly linked lists and iterators.
abacus::Master
The master of the optimization.
Definition: master.h:69