Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

CPlanarEdgeVar.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/Graph.h>
37 
38 #include <ostream>
39 
40 namespace abacus {
41 class Master;
42 } // namespace abacus
43 
44 namespace ogdf {
45 namespace cluster_planarity {
46 
47 class CPlanarEdgeVar : public EdgeVar {
48  friend class MaxCPlanarSub;
49 
50 public:
51  CPlanarEdgeVar(abacus::Master* master, double obj, node source, node target)
52  : EdgeVar(master, obj, source, target) { }
53 
54  CPlanarEdgeVar(abacus::Master* master, double obj, double lbound, node source, node target)
55  : EdgeVar(master, obj, lbound, source, target) { }
56 
57  virtual ~CPlanarEdgeVar() { }
58 
59  void printMe(std::ostream& out) override {
60  out << "[Var: " << sourceNode() << "->" << targetNode() << " ("
61  << "connect"
62  << ") ZF=" << obj() << "]";
63  }
64 };
65 
66 }
67 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::cluster_planarity::EdgeVar::targetNode
node targetNode() const
Definition: EdgeVar.h:63
ogdf::cluster_planarity::MaxCPlanarSub
Definition: MaxCPlanarSub.h:60
abacus::Variable::obj
virtual double obj() const
Returns the objective function coefficient.
Definition: variable.h:112
abacus
Definition: ILPClusterPlanarity.h:50
ogdf::cluster_planarity::CPlanarEdgeVar::CPlanarEdgeVar
CPlanarEdgeVar(abacus::Master *master, double obj, double lbound, node source, node target)
Definition: CPlanarEdgeVar.h:54
ogdf::cluster_planarity::CPlanarEdgeVar::printMe
void printMe(std::ostream &out) override
Definition: CPlanarEdgeVar.h:59
ogdf::cluster_planarity::CPlanarEdgeVar::~CPlanarEdgeVar
virtual ~CPlanarEdgeVar()
Definition: CPlanarEdgeVar.h:57
EdgeVar.h
Declaration of the variable class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph prob...
ogdf::cluster_planarity::EdgeVar::sourceNode
node sourceNode() const
Definition: EdgeVar.h:61
ogdf::cluster_planarity::CPlanarEdgeVar::CPlanarEdgeVar
CPlanarEdgeVar(abacus::Master *master, double obj, node source, node target)
Definition: CPlanarEdgeVar.h:51
ogdf::cluster_planarity::CPlanarEdgeVar
Definition: CPlanarEdgeVar.h:47
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240
ogdf::cluster_planarity::EdgeVar
Definition: EdgeVar.h:45
abacus::Master
The master of the optimization.
Definition: master.h:69