Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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
46
47#include <ostream>
48
49namespace ogdf {
50template<class E>
51class SListPure;
52
53namespace cluster_planarity {
54
56public:
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
72private:
73 // The subdivision containing edges forming a SubGraph that is not planar
75};
76
77}
78}
Declaration of the variable class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph prob...
Includes declaration of graph class.
Declaration of doubly linked lists and iterators.
Includes Abacus.
Declaration of the master class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph proble...
Forms the virtual base class for all possible constraints given in pool format.
Definition constraint.h:57
The master of the optimization.
Definition master.h:70
Forms the virtual base class for all possible variables given in pool format.
Definition variable.h:60
Doubly linked lists (maintaining the length of the list).
Definition List.h:1451
Singly linked lists.
Definition SList.h:191
ClusterKuratowskiConstraint(abacus::Master *master, int nEdges, SListPure< NodePair > &ks)
virtual double coeff(const abacus::Variable *v) const override
Returns the coefficient of the variable v in the constraint.
The namespace for all OGDF objects.