|
| PlanarSubgraphFast () |
| Creates an instance of the fast planar subgraph algorithm with default settings (runs = 10). More...
|
|
virtual PlanarSubgraphFast * | clone () const override |
| Returns a new instance of fast planar subgraph with the same option settings. More...
|
|
int | runs () const |
| Returns the current number of randomized runs. More...
|
|
void | runs (int nRuns) |
| Sets the number of randomized runs to nRuns . More...
|
|
| PlanarSubgraphModule () |
| Initializes a planar subgraph module (default constructor). More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
ReturnType | call (const Graph &G, List< edge > &delEdges) |
| Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph. More...
|
|
ReturnType | callAndDelete (GraphCopy &GC, const List< edge > &preferredEdges, List< edge > &delOrigEdges, bool preferredImplyPlanar=false) |
| Makes GC planar by deleting edges. More...
|
|
ReturnType | callAndDelete (GraphCopy &GC, List< edge > &delOrigEdges) |
| Makes G planar by deleting edges. More...
|
|
unsigned int | maxThreads () const |
| Returns the maximal number of used threads. More...
|
|
void | maxThreads (unsigned int n) |
| Sets the maximal number of used threads to n . More...
|
|
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. More...
|
|
ReturnType | operator() (const Graph &G, List< edge > &delEdges) |
| Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph. More...
|
|
| Module () |
| Initializes a module. More...
|
|
virtual | ~Module () |
|
| Timeouter () |
| timeout is turned of by default More...
|
|
| Timeouter (bool t) |
| timeout is turned off (false) or on (true) (with 0 second) More...
|
|
| Timeouter (const Timeouter &t) |
|
| Timeouter (double t) |
| timeout is set to the given value (seconds) More...
|
|
| ~Timeouter () |
|
bool | isTimeLimit () const |
| returns whether any time limit is set or not More...
|
|
Timeouter & | operator= (const Timeouter &t) |
|
double | timeLimit () const |
| returns the current time limit for the call More...
|
|
void | timeLimit (bool t) |
| shorthand to turn timelimit off or on (with 0 seconds) More...
|
|
void | timeLimit (double t) |
| sets the time limit for the call (in seconds); <0 means no limit. More...
|
|
template<typename TCost>
class ogdf::PlanarSubgraphFast< TCost >
Computation of a planar subgraph using PQ-trees.
Literature: Jayakumar, Thulasiraman, Swamy 1989
Optional Parameters
Option | Type | Default | Description |
runs | int | 0 | the number of randomized runs performed by the algorithm; the best solution is picked among all the runs. If runs is 0, one deterministic run is performed. |
Observe that this algorithm by theory does not compute a maximal planar subgraph. It is however the fastest known good heuristic.
Definition at line 82 of file PlanarSubgraphFast.h.