Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
CPlanarEdgeVar.h
Go to the documentation of this file.
1
33#pragma once
34
35#include <ogdf/basic/Graph_d.h>
36#include <ogdf/basic/Logger.h>
38
40
41namespace ogdf {
42namespace cluster_planarity {
43
44class CPlanarEdgeVar : public EdgeVar {
45 friend class MaxCPlanarSub;
46
47public:
48 CPlanarEdgeVar(abacus::Master* master, double obj, node source, node target)
49 : EdgeVar(master, obj, source, target) { }
50
51 CPlanarEdgeVar(abacus::Master* master, double obj, double lbound, node source, node target)
52 : EdgeVar(master, obj, lbound, source, target) { }
53
54 virtual ~CPlanarEdgeVar() { }
55
56 void printMe(std::ostream& out) override {
57 out << "[Var: " << sourceNode() << "->" << targetNode() << " ("
58 << "connect"
59 << ") ZF=" << obj() << "]";
60 }
61};
62
63}
64}
Declaration of the variable class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph prob...
Pure declaration header, find template implementation in Graph.h.
Contains logging functionality.
The master of the optimization.
Definition master.h:69
virtual double obj() const
Returns the objective function coefficient.
Definition variable.h:112
Class for the representation of nodes.
Definition Graph_d.h:177
CPlanarEdgeVar(abacus::Master *master, double obj, double lbound, node source, node target)
void printMe(std::ostream &out) override
CPlanarEdgeVar(abacus::Master *master, double obj, node source, node target)
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
variable.