Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

FUPSModule.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Module.h>
36 
37 namespace ogdf {
38 
44 {
45 
46 public:
47 
49  FUPSModule() { }
50 
51  // destruction
52  virtual ~FUPSModule() { }
53 
65  List<edge> &delEdges)
66  {
67  return doCall(UPR, delEdges);
68  }
69 
72  List<edge> &delEdges)
73  {
74  return call(UPR, delEdges);
75  }
76 
77 
78 protected:
89  virtual ReturnType doCall(UpwardPlanRep &UPR,
90  List<edge> &delEdges) = 0;
91 
93 
94 };
95 
96 }
Interface for feasible upward planar subgraph algorithms.
Definition: FUPSModule.h:43
FUPSModule()
Initializes a feasible upward planar subgraph module.
Definition: FUPSModule.h:49
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
Declares base class for all module types.
Base class for modules.
Definition: Module.h:47
Declaration of a base class for planar representations of graphs and cluster graphs.
Upward planarized representations (of a connected component) of a graph.
Definition: UpwardPlanRep.h:51
virtual ~FUPSModule()
Definition: FUPSModule.h:52
ReturnType
The return type of a module.
Definition: Module.h:51
ReturnType operator()(UpwardPlanRep &UPR, List< edge > &delEdges)
Computes a upward planarized representation of the input graph (shorthand for call) ...
Definition: FUPSModule.h:71
ReturnType call(UpwardPlanRep &UPR, List< edge > &delEdges)
Computes a feasible upward planar subgraph of the input graph.
Definition: FUPSModule.h:64
The namespace for all OGDF objects.