The base class for graph augmentation algorithms. More...
#include <ogdf/augmentation/AugmentationModule.h>
Public Member Functions | |
AugmentationModule () | |
Initializes an augmentation module. | |
virtual | ~AugmentationModule () |
void | call (Graph &G) |
Calls the augmentation module for graph G . | |
void | call (Graph &G, List< edge > &L) |
Calls the augmentation module for graph G . | |
int | numberOfAddedEdges () const |
Returns the number of added edges. | |
void | operator() (Graph &G) |
Calls the augmentation module for graph G . | |
void | operator() (Graph &G, List< edge > &L) |
Calls the augmentation module for graph G . | |
Protected Member Functions | |
virtual void | doCall (Graph &G, List< edge > &L)=0 |
Implements the augmentation algorithm for graph G . | |
Private Attributes | |
int | m_nAddedEdges |
The base class for graph augmentation algorithms.
The class AugmentationModule is the base class for augmentation modules. An augmentation module transforms an input graph G into an output graph G' by adding edges, such that G' has a certain property, e.g., biconnected.
An implementation of an augmentation module must override the protected method doCall(G,L), which gets as input a graph reference G. It then adds the augmented edges to G and returns the list of added edges in L.
Definition at line 53 of file AugmentationModule.h.
|
inline |
Initializes an augmentation module.
Definition at line 56 of file AugmentationModule.h.
|
inlinevirtual |
Definition at line 59 of file AugmentationModule.h.
Calls the augmentation module for graph G
.
Definition at line 62 of file AugmentationModule.h.
Calls the augmentation module for graph G
.
Returns the list of added edges in L
.
Definition at line 75 of file AugmentationModule.h.
Implements the augmentation algorithm for graph G
.
Returns the list of added edges in L
.
Implemented in ogdf::DfsMakeBiconnected, ogdf::PlanarAugmentation, and ogdf::PlanarAugmentationFix.
|
inline |
Returns the number of added edges.
Definition at line 88 of file AugmentationModule.h.
Calls the augmentation module for graph G
.
Definition at line 68 of file AugmentationModule.h.
Calls the augmentation module for graph G
.
Returns the list of added edges in L
.
Definition at line 85 of file AugmentationModule.h.
|
private |
Definition at line 99 of file AugmentationModule.h.