Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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>
39 
40 namespace ogdf {
41 namespace cluster_planarity {
42 
43 class CPlanarEdgeVar : public EdgeVar {
44  friend class MaxCPlanarSub;
45 public:
46  CPlanarEdgeVar(abacus::Master *master, double obj, node source, node target) :
47  EdgeVar(master, obj, source, target)
48  {
49 
50  }
51  CPlanarEdgeVar(abacus::Master *master, double obj, double lbound, node source, node target) :
52  EdgeVar(master, obj, lbound, source, target)
53  {
54 
55  }
56 
57  virtual ~CPlanarEdgeVar() {}
58 
59  void printMe(ostream& out) override {
60  out << "[Var: " << sourceNode() << "->" << targetNode() << " (" << "connect" << ") ZF=" << obj() << "]";
61  }
62 
63 };
64 
65 }
66 }
virtual double obj() const
Returns the objective function coefficient.
Definition: variable.h:112
void printMe(ostream &out) override
The master of the optimization.
Definition: master.h:69
CPlanarEdgeVar(abacus::Master *master, double obj, double lbound, node source, node target)
Declaration of the variable class for the Branch&Cut algorithm for the Maximum C-Planar SubGraph prob...
CPlanarEdgeVar(abacus::Master *master, double obj, node source, node target)
Contains logging functionality.
Class for the representation of nodes.
Definition: Graph_d.h:167
Pure declaration header, find template implementation in Graph.h.
variable.
The namespace for all OGDF objects.