|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
52 template<
typename TCost>
59 #ifdef OGDF_MEMORY_POOL_NTS
75 List<edge>& delEdges,
bool preferredImplyPlanar =
false) {
76 return doCall(G, preferredEdges, delEdges, &cost, preferredImplyPlanar);
87 bool preferredImplyPlanar =
false) {
88 return doCall(G, preferredEdges, delEdges,
nullptr, preferredImplyPlanar);
99 return doCall(G, preferredEdges, delEdges, &cost);
109 return doCall(G, preferredEdges, delEdges);
114 bool preferredImplyPlanar =
false) {
115 return call(G, preferredEdges, delEdges, preferredImplyPlanar);
129 List<edge>& delOrigEdges,
bool preferredImplyPlanar =
false) {
131 ReturnType retValue =
call(GC, preferredEdges, delEdges, preferredImplyPlanar);
133 for (
edge eCopy : delEdges) {
159 #ifndef OGDF_MEMORY_POOL_NTS
182 const EdgeArray<TCost>* pCost =
nullptr,
bool preferredImplyPlanar =
false) = 0;
The namespace for all OGDF objects.
static bool isSolution(ReturnType ret)
Returns true iff ret indicates that the module returned a feasible solution.
Interface for planar subgraph algorithms.
Includes declaration of graph class.
void maxThreads(unsigned int n)
Sets the maximal number of used threads to n.
ReturnType operator()(const Graph &G, List< edge > &delEdges)
Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
Copies of graphs supporting edge splitting.
ReturnType call(const Graph &G, const EdgeArray< TCost > &cost, const List< edge > &preferredEdges, List< edge > &delEdges, bool preferredImplyPlanar=false)
Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
PlanarSubgraphModule()
Initializes a planar subgraph module (default constructor).
Declares base class for modules with timeout functionality.
unsigned int m_maxThreads
The maximal number of used threads.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
ReturnType callAndDelete(GraphCopy &GC, const List< edge > &preferredEdges, List< edge > &delOrigEdges, bool preferredImplyPlanar=false)
Makes GC planar by deleting edges.
ReturnType call(const Graph &G, const List< edge > &preferredEdges, List< edge > &delEdges, bool preferredImplyPlanar=false)
Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
ReturnType operator()(const Graph &G, const List< edge > &preferredEdges, List< edge > &delEdges, bool preferredImplyPlanar=false)
Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
Declaration of graph copy classes.
Data type for general directed graphs (adjacency list representation).
Declaration of Thread class representing threads.
void delEdge(edge e) override
Removes edge e and clears the list of edges corresponding to e's original edge.
Basic declarations, included by all source files.
Class for the representation of edges.
Declaration of doubly linked lists and iterators.
virtual PlanarSubgraphModule * clone() const =0
Returns a new instance of the planar subgraph module with the same option settings.
unsigned int maxThreads() const
Returns the maximal number of used threads.
class for timeout funtionality.
Declares base class for all module types.
ReturnType call(const Graph &G, List< edge > &delEdges)
Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
ReturnType
The return type of a module.
ReturnType call(const Graph &G, const EdgeArray< TCost > &cost, List< edge > &delEdges)
Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
Declaration of memory manager for allocating small pieces of memory.
virtual ReturnType doCall(const Graph &G, const List< edge > &preferredEdges, List< edge > &delEdges, const EdgeArray< TCost > *pCost=nullptr, bool preferredImplyPlanar=false)=0
Computes the set of edges delEdges which have to be deleted to obtain the planar subgraph.
ReturnType callAndDelete(GraphCopy &GC, List< edge > &delOrigEdges)
Makes G planar by deleting edges.
iterator pushBack(const E &x)
Adds element x at the end of the list.
const Graph & original() const
Returns a reference to the original graph.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.