#include <ogdf/upward/SubgraphUpwardPlanarizer.h>
Inheritance diagram for ogdf::SubgraphUpwardPlanarizer:Public Member Functions | |
| SubgraphUpwardPlanarizer () | |
| Creates an instance of subgraph planarizer. More... | |
| int | runs () |
| void | runs (int n) |
| void | setAcyclicSubgraphModule (AcyclicSubgraphModule *acyclicMod) |
| Sets the module option for acyclic subgraph module. More... | |
| void | setInserter (UpwardEdgeInserterModule *pInserter) |
| Sets the module option for the edge insertion module. More... | |
| void | setSubgraph (FUPSModule *FUPS) |
| Sets the module option for the computation of the feasible upward planar subgraph. More... | |
Public Member Functions inherited from ogdf::UpwardPlanarizerModule | |
| UpwardPlanarizerModule () | |
| Initializes an upward planarizer module. More... | |
| virtual | ~UpwardPlanarizerModule () |
| ReturnType | call (UpwardPlanRep &UPR, const EdgeArray< int > *cost=nullptr, const EdgeArray< bool > *forbid=nullptr) |
| Computes a upward planarized representation (UPR) of the input graph G. More... | |
| ReturnType | operator() (UpwardPlanRep &UPR, const EdgeArray< int > *cost=nullptr, const EdgeArray< bool > *forbid=nullptr) |
| Computes a upward planarized representation of the input graph (shorthand for call) More... | |
| bool | useCost () const |
| Returns true iff edge costs are given. More... | |
| bool | useForbid () const |
| Returns true iff forbidden edges are given. More... | |
Public Member Functions inherited from ogdf::Module | |
| Module () | |
| Initializes a module. More... | |
| virtual | ~Module () |
Protected Member Functions | |
| virtual ReturnType | doCall (UpwardPlanRep &UPR, const EdgeArray< int > &cost, const EdgeArray< bool > &forbid) override |
| Computes an upward planarized representation of the input graph. More... | |
Protected Attributes | |
| std::unique_ptr< AcyclicSubgraphModule > | m_acyclicMod |
| The acyclic subgraph module. More... | |
| std::unique_ptr< UpwardEdgeInserterModule > | m_inserter |
| The edge insertion module. More... | |
| int | m_runs |
| std::unique_ptr< FUPSModule > | m_subgraph |
| The upward planar subgraph algorithm. More... | |
Private Member Functions | |
| void | constructComponentGraphs (BCTree &BC, NodeArray< GraphCopy > &biComps) |
| void | dfsMerge (const GraphCopy &GC, BCTree &BC, NodeArray< GraphCopy > &biComps, NodeArray< UpwardPlanRep > &uprs, UpwardPlanRep &UPR_res, node parent_BC, node current_BC, NodeArray< bool > &nodesDone) |
| traversion the BTree and merge the component to a common graph More... | |
| void | merge (const GraphCopy &GC, UpwardPlanRep &UPR_res, const GraphCopy &block, UpwardPlanRep &UPR) |
| add UPR to UPR_res. More... | |
Additional Inherited Members | |
Public Types inherited from ogdf::Module | |
| enum | ReturnType { ReturnType::Feasible, ReturnType::Optimal, ReturnType::NoFeasibleSolution, ReturnType::TimeoutFeasible, ReturnType::TimeoutInfeasible, ReturnType::Error } |
| The return type of a module. More... | |
Static Public Member Functions inherited from ogdf::Module | |
| static bool | isSolution (ReturnType ret) |
Returns true iff ret indicates that the module returned a feasible solution. More... | |
Definition at line 50 of file SubgraphUpwardPlanarizer.h.
|
inline |
Creates an instance of subgraph planarizer.
Definition at line 55 of file SubgraphUpwardPlanarizer.h.
|
private |
|
private |
traversion the BTree and merge the component to a common graph
|
overrideprotectedvirtual |
Computes an upward planarized representation of the input graph.
| UPR | represents the input graph as well as the computed upward planarized representation after the call. The original graph of UPR has to be the input graph G. Crossings are replaced by dummy vertices. The UPR is finaly augmented to a st-graph. Since this augmentation, crossings dummies may not got an in- and outdegree of 2! |
| cost | points to an edge array that gives the cost of each edge. If cost = 0, all edges have cost 1. |
| forbid | points to an edge array indicating which edges are not allowed to be crossed, i.e., (*forbid)[e] = true. If forbid = 0, no edges are forbidden. |
Implements ogdf::UpwardPlanarizerModule.
|
private |
add UPR to UPR_res.
|
inline |
Definition at line 79 of file SubgraphUpwardPlanarizer.h.
|
inline |
Definition at line 80 of file SubgraphUpwardPlanarizer.h.
|
inline |
Sets the module option for acyclic subgraph module.
Definition at line 75 of file SubgraphUpwardPlanarizer.h.
|
inline |
Sets the module option for the edge insertion module.
Definition at line 70 of file SubgraphUpwardPlanarizer.h.
|
inline |
Sets the module option for the computation of the feasible upward planar subgraph.
Definition at line 65 of file SubgraphUpwardPlanarizer.h.
|
protected |
The acyclic subgraph module.
Definition at line 90 of file SubgraphUpwardPlanarizer.h.
|
protected |
The edge insertion module.
Definition at line 89 of file SubgraphUpwardPlanarizer.h.
|
protected |
Definition at line 91 of file SubgraphUpwardPlanarizer.h.
|
protected |
The upward planar subgraph algorithm.
Definition at line 88 of file SubgraphUpwardPlanarizer.h.