Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::UpwardEdgeInserterModule Class Referenceabstract

#include <ogdf/module/UpwardEdgeInserterModule.h>

+ Inheritance diagram for ogdf::UpwardEdgeInserterModule:

Public Member Functions

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

Detailed Description

Definition at line 41 of file UpwardEdgeInserterModule.h.

Constructor & Destructor Documentation

◆ UpwardEdgeInserterModule()

ogdf::UpwardEdgeInserterModule::UpwardEdgeInserterModule ( )
inline

Initializes an edge insertion module.

Definition at line 46 of file UpwardEdgeInserterModule.h.

◆ ~UpwardEdgeInserterModule()

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

Definition at line 49 of file UpwardEdgeInserterModule.h.

Member Function Documentation

◆ call() [1/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 59 of file UpwardEdgeInserterModule.h.

◆ call() [2/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 73 of file UpwardEdgeInserterModule.h.

◆ call() [3/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 92 of file UpwardEdgeInserterModule.h.

◆ call() [4/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 113 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: