Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

CPlanarSubgraphModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Module.h>
35 #include <ogdf/basic/Timeouter.h>
36 
38 
39 namespace ogdf {
40 
42 class CPlanarSubgraphModule : public Module, public Timeouter
43 {
44 
45 public:
50 
60  ReturnType call(const ClusterGraph &G, List<edge> &delEdges) {
61  return call(G, nullptr, delEdges);
62  }
63 
76  ReturnType call(const ClusterGraph &G, const EdgeArray<int> *pCost, List<edge> &delEdges) {
77  return doCall(G, pCost, delEdges);
78  }
79 
80 
81 protected:
82 
95  virtual ReturnType doCall(const ClusterGraph &CG, const EdgeArray<int> *pCost, List<edge> &delEdges) = 0;
96 
98 };
99 
100 } //end namespace ogdf
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
virtual ReturnType doCall(const ClusterGraph &CG, const EdgeArray< int > *pCost, List< edge > &delEdges)=0
Computes a c-planar subgraph.
Interface of algorithms for the computation of c-planar subgraphs.
Declares base class for all module types.
Base class for modules.
Definition: Module.h:47
ReturnType
The return type of a module.
Definition: Module.h:51
virtual ~CPlanarSubgraphModule()
Destruction.
Representation of clustered graphs.
Definition: ClusterGraph.h:291
class for timeout funtionality.
Definition: Timeouter.h:47
ReturnType call(const ClusterGraph &G, const EdgeArray< int > *pCost, List< edge > &delEdges)
Computes set of edges delEdges, which have to be deleted in order to get a c-planar subgraph...
CPlanarSubgraphModule()
Constructs a cplanar subgraph module.
ReturnType call(const ClusterGraph &G, List< edge > &delEdges)
Computes set of edges delEdges, which have to be deleted in order to get a c-planar subgraph...
Declares base class for modules with timeout functionality.
The namespace for all OGDF objects.