Auxiliary lightweight data structure to represent cycles. More...
#include <ogdf/graphalg/planar_separator/SeparatorDualHelper.h>
Public Member Functions | |
CycleData () | |
Empty Constructor - only used to be able to throw empty CD in case of algorithm failure. | |
CycleData (const Graph &G, const face f, const adjEntry adj) | |
Constructor. | |
CycleData (const Graph &G, CycleData &first, CycleData &second) | |
Constructor. | |
void | addTriangle (adjEntry adj) |
Expands the cycle by adding a triangle. | |
bool | checkSize (int n) const |
Checks the size of this cycle. | |
bool | isInCycle (node n) |
Checks if a node lies on the cycle. | |
void | popBack () |
void | popFront () |
void | pushBack (node n) |
void | pushFront (node n) |
void | removeTriangle (adjEntry adj) |
Expands the cycle by removing a triangle. | |
Public Attributes | |
List< node > | cycle |
contains nodes on the cycle, starting with v, ending with u, where e = (u,v) is the initial edge | |
unsigned int | inside |
std::unordered_set< node > | nodes |
Auxiliary lightweight data structure to represent cycles.
Definition at line 55 of file SeparatorDualHelper.h.
|
inline |
Empty Constructor - only used to be able to throw empty CD in case of algorithm failure.
Do not use this anywhere.
Definition at line 99 of file SeparatorDualHelper.h.
|
inline |
Constructor.
Constructs a CycleData from a single face.
G | the graph |
f | the face |
adj | adjEntry via which we entered the face |
Definition at line 109 of file SeparatorDualHelper.h.
|
inline |
Constructor.
Constructs a CycleData by merging two Cycles.
G | the graph |
first | the first cycle |
second | the second cycle |
Definition at line 123 of file SeparatorDualHelper.h.
Expands the cycle by adding a triangle.
adj | the adjEntry of the triangle that is added |
Definition at line 163 of file SeparatorDualHelper.h.
Checks the size of this cycle.
n | the size of the graph to be checked against |
Definition at line 199 of file SeparatorDualHelper.h.
Checks if a node lies on the cycle.
n | the node to be checked |
Definition at line 69 of file SeparatorDualHelper.h.
|
inline |
Definition at line 85 of file SeparatorDualHelper.h.
|
inline |
Definition at line 90 of file SeparatorDualHelper.h.
Definition at line 73 of file SeparatorDualHelper.h.
Definition at line 79 of file SeparatorDualHelper.h.
Expands the cycle by removing a triangle.
adj | the adjEntry of the triangle that is removed |
Definition at line 178 of file SeparatorDualHelper.h.
contains nodes on the cycle, starting with v, ending with u, where e = (u,v) is the initial edge
Definition at line 59 of file SeparatorDualHelper.h.
Definition at line 56 of file SeparatorDualHelper.h.
std::unordered_set<node> ogdf::planar_separator::SeparatorDualHelper::CycleData::nodes |
Definition at line 61 of file SeparatorDualHelper.h.