Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::UpwardEdgeInserterModule Class Referenceabstract

#include <ogdf/upward/UpwardEdgeInserterModule.h>

+ Inheritance diagram for ogdf::UpwardEdgeInserterModule:

Public Member Functions

 UpwardEdgeInserterModule ()
 Initializes an edge insertion module.
 
virtual ~UpwardEdgeInserterModule ()
 
ReturnType call (UpwardPlanRep &UPR, const EdgeArray< bool > &forbidOriginal, const List< edge > &origEdges)
 Inserts all edges in origEdges with given forbidden edges into UPR.
 
ReturnType call (UpwardPlanRep &UPR, const EdgeArray< int > &costOrig, const EdgeArray< bool > &forbidOriginal, const List< edge > &origEdges)
 Inserts all edges in origEdges with given forbidden edges into UPR.
 
ReturnType call (UpwardPlanRep &UPR, const EdgeArray< int > &costOrig, const List< edge > &origEdges)
 Inserts all edges in origEdges with given costs into UPR.
 
ReturnType call (UpwardPlanRep &UPR, const List< edge > &origEdges)
 Inserts all edges in origEdges into UPR.
 
- Public Member Functions inherited from ogdf::Module
 Module ()
 Initializes a module.
 
virtual ~Module ()
 

Protected Member Functions

virtual ReturnType doCall (UpwardPlanRep &UPR, const List< edge > &origEdges, const EdgeArray< int > *costOrig, const EdgeArray< bool > *forbiddenEdgeOrig)=0
 Actual algorithm call that has to be implemented by derived classes.
 

Additional Inherited Members

- Public Types inherited from ogdf::Module
enum class  ReturnType { Feasible , Optimal , NoFeasibleSolution , TimeoutFeasible , TimeoutInfeasible , 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.
 

Detailed Description

Definition at line 39 of file UpwardEdgeInserterModule.h.

Constructor & Destructor Documentation

◆ UpwardEdgeInserterModule()

ogdf::UpwardEdgeInserterModule::UpwardEdgeInserterModule ( )
inline

Initializes an edge insertion module.

Definition at line 42 of file UpwardEdgeInserterModule.h.

◆ ~UpwardEdgeInserterModule()

virtual ogdf::UpwardEdgeInserterModule::~UpwardEdgeInserterModule ( )
inlinevirtual

Definition at line 45 of file UpwardEdgeInserterModule.h.

Member Function Documentation

◆ call() [1/4]

ReturnType ogdf::UpwardEdgeInserterModule::call ( UpwardPlanRep UPR,
const EdgeArray< bool > &  forbidOriginal,
const List< edge > &  origEdges 
)
inline

Inserts all edges in origEdges with given forbidden edges into UPR.

Precondition
No forbidden edge may be in origEdges.
Parameters
UPRis the input upward planarized representation of a FUPS and will also receive the result.
forbidOriginalpoints to an edge array indicating if an original edge is forbidden to be crossed.
origEdgesis the list of original edges (edges in the original graph of UPR) that have to be inserted.
Returns
the status of the result.

Definition at line 101 of file UpwardEdgeInserterModule.h.

◆ call() [2/4]

ReturnType ogdf::UpwardEdgeInserterModule::call ( UpwardPlanRep UPR,
const EdgeArray< int > &  costOrig,
const EdgeArray< bool > &  forbidOriginal,
const List< edge > &  origEdges 
)
inline

Inserts all edges in origEdges with given forbidden edges into UPR.

Parameters
UPRis the input upward planarized representation of a FUPS and will also receive the result.
costOrigpoints to an edge array containing the costs of original edges; edges in UPR without an original edge have zero costs.
forbidOriginalpoints to an edge array indicating if an original edge is forbidden to be crossed.
origEdgesis the list of original edges (edges in the original graph of UPR) that have to be inserted.

Definition at line 84 of file UpwardEdgeInserterModule.h.

◆ call() [3/4]

ReturnType ogdf::UpwardEdgeInserterModule::call ( UpwardPlanRep UPR,
const EdgeArray< int > &  costOrig,
const List< edge > &  origEdges 
)
inline

Inserts all edges in origEdges with given costs into UPR.

Parameters
UPRis the input upward planarized representation of a FUPS and will also receive the result.
costOrigpoints to an edge array containing the costs of original edges; edges in UPR without an original edge have zero costs.
origEdgesis the list of original edges (edges in the original graph of UPR) that have to be inserted.
Returns
the status of the result.

Definition at line 69 of file UpwardEdgeInserterModule.h.

◆ call() [4/4]

ReturnType ogdf::UpwardEdgeInserterModule::call ( UpwardPlanRep UPR,
const List< edge > &  origEdges 
)
inline

Inserts all edges in origEdges into UPR.

Parameters
UPRis the input upward planarized representation of a FUPS and will also receive the result.
origEdgesis the list of original edges (edges in the original graph of UPR) that have to be inserted.
Returns
the status of the result.

Definition at line 55 of file UpwardEdgeInserterModule.h.

◆ doCall()

virtual ReturnType ogdf::UpwardEdgeInserterModule::doCall ( UpwardPlanRep UPR,
const List< edge > &  origEdges,
const EdgeArray< int > *  costOrig,
const EdgeArray< bool > *  forbiddenEdgeOrig 
)
protectedpure virtual

Actual algorithm call that has to be implemented by derived classes.

Parameters
UPRis the input upward planarized representation of a FUPS and will also receive the result.
origEdgesis the list of original edges (edges in the original graph of UPR) that have to be inserted.
costOrigpoints to an edge array containing the costs of original edges; edges in UPR without an original edge have zero costs.
forbiddenEdgeOrigpoints to an edge array indicating if an original edge is forbidden to be crossed.

Implemented in ogdf::FixedEmbeddingUpwardEdgeInserter.


The documentation for this class was generated from the following file: