|
| PlanarSubgraphFast () |
| Creates an instance of the fast planar subgraph algorithm with default settings (runs = 10).
|
|
virtual PlanarSubgraphFast * | clone () const override |
| Returns a new instance of fast planar subgraph with the same option settings.
|
|
int | runs () const |
| Returns the current number of randomized runs.
|
|
void | runs (int nRuns) |
| Sets the number of randomized runs to nRuns .
|
|
| PlanarSubgraphModule () |
| Initializes a planar subgraph module (default constructor).
|
|
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.
|
|
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.
|
|
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 | call (const Graph &G, List< edge > &delEdges) |
| Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
|
|
ReturnType | callAndDelete (GraphCopy &GC, const List< edge > &preferredEdges, List< edge > &delOrigEdges, bool preferredImplyPlanar=false) |
| Makes GC planar by deleting edges.
|
|
ReturnType | callAndDelete (GraphCopy &GC, List< edge > &delOrigEdges) |
| Makes G planar by deleting edges.
|
|
unsigned int | maxThreads () const |
| Returns the maximal number of used threads.
|
|
void | maxThreads (unsigned int n) |
| Sets the maximal number of used threads to n .
|
|
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.
|
|
ReturnType | operator() (const Graph &G, List< edge > &delEdges) |
| Returns the set of edges delEdges which have to be deleted to obtain the planar subgraph.
|
|
| Module () |
| Initializes a module.
|
|
virtual | ~Module () |
|
| Timeouter () |
| timeout is turned of by default
|
|
| Timeouter (bool t) |
| timeout is turned off (false) or on (true) (with 0 second)
|
|
| Timeouter (const Timeouter &t) |
|
| Timeouter (double t) |
| timeout is set to the given value (seconds)
|
|
| ~Timeouter () |
|
bool | isTimeLimit () const |
| returns whether any time limit is set or not
|
|
Timeouter & | operator= (const Timeouter &t) |
|
double | timeLimit () const |
| returns the current time limit for the call
|
|
void | timeLimit (bool t) |
| shorthand to turn timelimit off or on (with 0 seconds)
|
|
void | timeLimit (double t) |
| sets the time limit for the call (in seconds); <0 means no limit.
|
|
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.