Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

MaximumPlanarSubgraph.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 
39 
40 #include <ogdf/external/abacus.h>
41 
42 namespace ogdf {
43 
44 
46 
50 {
51 public:
52  // Construction
54  // Destruction
56 
57  virtual MaximumPlanarSubgraph *clone() const override { return new MaximumPlanarSubgraph(); }
58 
59 protected:
60  // Implements the Planar Subgraph interface.
61  // For the given graph \p G, a clustered graph with only
62  // a single root cluster is generated.
63  // Computes set of edges delEdges, which have to be deleted
64  // in order to get a planar subgraph; edges in preferredEdges
65  // should be contained in planar subgraph.
66  // Status: pCost and preferredEdges are ignored in current implementation.
67  virtual ReturnType doCall(
68  const Graph &G,
69  const List<edge> &preferredEdges,
70  List<edge> &delEdges,
71  const EdgeArray<int> *pCost,
72  bool preferredImplyPlanar) override;
73 };
74 
75 } //end namespace ogdf
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:472
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
Declares base class for all module types.
virtual MaximumPlanarSubgraph * clone() const override
Returns a new instance of the planar subgraph module with the same option settings.
ReturnType
The return type of a module.
Definition: Module.h:51
Interface for planar subgraph algorithms.
Includes Abacus.
Declares base class for modules with timeout functionality.
The namespace for all OGDF objects.
Declaration of interface for planar subgraph algorithms.
Exact computation of a maximum planar subgraph.