auxiliary class for the planar augmentation algorithm More...
#include <ogdf/augmentation/planar/PALabel.h>
Public Types | |
enum class | StopCause { Planarity , CDegree , BDegree , Root } |
Public Member Functions | |
PALabel (node parent, node cutvertex, StopCause sc=StopCause::BDegree) | |
void | addPendant (node pendant) |
void | deleteAllPendants () |
node | getFirstPendant () |
node | getLastPendant () |
node | getPendant (int nr) |
return pendant with number nr, starts counting at 0 | |
node | head () |
returns the head node | |
bool | isBLabel () |
bool | isCLabel () |
node | parent () |
return the parent node. If the label is a c-label it returns m_head | |
void | removeFirstPendant () |
void | removePendant (ListIterator< node > it) |
void | removePendant (node pendant) |
void | setHead (node newHead) |
void | setParent (node newParent) |
int | size () |
return number of pendants | |
StopCause | stopCause () |
void | stopCause (StopCause sc) |
Private Attributes | |
node | m_head |
the cutvertex and perhaps (see m_parent) the parent node | |
node | m_parent |
the "parent" of the pendants in the BC-Tree, m_parent is a b-vertex or a c-vertex if it is a b-vertex m_parent != 0 otherwise m_parent == 0 and the parent is the head node m_head is always != 0 | |
List< node > | m_pendants |
list with all pendants of the label | |
StopCause | m_stopCause |
the stop cause that occurs when traversing from the pendants to the bc-tree-root computed in PlanarAugmentation::followPath() | |
Friends | |
class | PlanarAugmentation |
class | PlanarAugmentationFix |
auxiliary class for the planar augmentation algorithm
A label contains several pendants, a parent- and a head- node. The head node is a cutvertex in the correspondign BC-Tree. The pendants can be connected by edges so planarity is maintained.
|
strong |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
private |
|
private |
|
private |
the stop cause that occurs when traversing from the pendants to the bc-tree-root computed in PlanarAugmentation::followPath()