00001 /* 00002 * $Revision: 2299 $ 00003 * 00004 * last checkin: 00005 * $Author: gutwenger $ 00006 * $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 00007 ***************************************************************/ 00008 00049 #ifndef OGDF_CLUSTER_MAX_PLANAR_EDGES_H 00050 #define OGDF_CLUSTER_MAX_PLANAR_EDGES_H 00051 00052 #include <ogdf/internal/cluster/Cluster_EdgeVar.h> 00053 #include <ogdf/internal/cluster/basics.h> 00054 00055 #include <abacus/constraint.h> 00056 00057 namespace ogdf { 00058 00059 00060 class MaxPlanarEdgesConstraint : public ABA_CONSTRAINT { 00061 #ifdef OGDF_DEBUG 00062 friend class Sub; 00063 friend class CPlanarSub; 00064 #endif 00065 public: 00066 //construction 00067 MaxPlanarEdgesConstraint(ABA_MASTER *master, int edgeBound, List<nodePair> &edges); 00068 MaxPlanarEdgesConstraint(ABA_MASTER *master, int edgeBound); 00069 00070 //destruction 00071 virtual ~MaxPlanarEdgesConstraint(); 00072 00073 //computes and returns the coefficient for the given variable 00074 virtual double coeff(ABA_VARIABLE *v); 00075 00076 private: 00077 List<nodePair> m_edges; 00078 bool m_graphCons; 00079 }; 00080 00081 } 00082 00083 #endif 00084