6 * $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7 ***************************************************************/
10 * \brief Declaration of class MaximumPlanarSubgraph.
12 * \author Karsten Klein
15 * This file is part of the Open Graph Drawing Framework (OGDF).
19 * See README.txt in the root directory of the OGDF installation for details.
22 * This program is free software; you can redistribute it and/or
23 * modify it under the terms of the GNU General Public License
24 * Version 2 or 3 as published by the Free Software Foundation;
25 * see the file LICENSE.txt included in the packaging of this file
29 * This program is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
35 * You should have received a copy of the GNU General Public
36 * License along with this program; if not, write to the Free
37 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
38 * Boston, MA 02110-1301, USA.
40 * \see http://www.gnu.org/copyleft/gpl.html
41 ***************************************************************/
48 #ifndef OGDF_MAXIMUM_PLANAR_SUBGRAPH_H
49 #define OGDF_MAXIMUM_PLANAR_SUBGRAPH_H
51 #include <ogdf/basic/Module.h>
52 #include <ogdf/basic/Timeouter.h>
54 #include <ogdf/module/PlanarSubgraphModule.h>
55 #include <ogdf/cluster/ClusterGraph.h>
57 #include <ogdf/external/abacus.h>
61 //--------------------------------------------------------------------------
62 //MaximumPlanarSubgraph
63 //Exact computation of a maximum planar subgraph
64 //--------------------------------------------------------------------------
65 class OGDF_EXPORT MaximumPlanarSubgraph
: public PlanarSubgraphModule
70 virtual ReturnType
doCall(const Graph
&G
,
71 const List
<edge
> &preferedEdges
,
73 const EdgeArray
<int> *pCost
,
74 bool preferedImplyPlanar
)
75 { THROW_NO_ABACUS_EXCEPTION
; return retError
; }
81 MaximumPlanarSubgraph() {}
83 virtual ~MaximumPlanarSubgraph() {}
86 // Implements the Planar Subgraph interface.
87 // For the given graph \a G, a clustered graph with only
88 // a single root cluster is generated.
89 // Computes set of edges delEdges, which have to be deleted
90 // in order to get a planar subgraph; edges in preferredEdges
91 // should be contained in planar subgraph.
92 // Status: pCost and preferredEdges are ignored in current implementation.
93 virtual ReturnType
doCall(const Graph
&G
,
94 const List
<edge
> &preferredEdges
,
96 const EdgeArray
<int> *pCost
,
97 bool preferredImplyPlanar
);
102 } //end namespace ogdf
105 #endif // OGDF_MAXIMUM_PLANAR_SUBGRAPH_H