Abstract BFSTree that is realized via NodeArrays. More...
#include <ogdf/graphalg/PlanarSeparatorModule.h>
Public Member Functions | |
ArrayBFSTree (GraphCopy &G, node rootNode) | |
Constructor. | |
adjEntry | getAdjToParent (node n) const override |
Returns the adjEntry that leads up to the parent of n . | |
List< node > | getChildrenOfNode (node n) const override |
Returns all (immediate) children of a node. | |
int | getDescendantsOfNode (node n) const override |
Returns the total number of children, grandchildren etc. | |
GraphCopy * | getGraph () const override |
Allows access to a copy of the graph. | |
int | getGraphSize () const override |
Gets the number of nodes of the graph. | |
int | getLevelOfNode (node n) const override |
Returns the level (=depth in the tree) for a node. | |
node | getParentOfNode (node n) const override |
Returns the node that is the parent of n in the tree. | |
node | getRoot () const override |
Gets the current root node of the tree. | |
void | init () |
Initializes all internal arrays. | |
bool | isInTree (edge e) const override |
Checks if an edge is a tree-edge. | |
Public Member Functions inherited from ogdf::planar_separators::BFSTree | |
virtual | ~BFSTree ()=default |
Protected Attributes | |
NodeArray< List< node > > | childrenOfNode |
NodeArray< int > | descendantsOfNode |
NodeArray< adjEntry > | edgeToParent |
EdgeArray< bool > | inTree |
NodeArray< int > | levelOfNode |
NodeArray< bool > | mark |
NodeArray< node > | parentOfNode |
GraphCopy * | pGraph |
node | root |
Abstract BFSTree that is realized via NodeArrays.
Definition at line 123 of file PlanarSeparatorModule.h.
Constructor.
G | the graph spanned by the tree |
rootNode | the root node for the tree |
Definition at line 131 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Returns the adjEntry that leads up to the parent of n
.
n | the node |
Implements ogdf::planar_separators::BFSTree.
Definition at line 170 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Returns all (immediate) children of a node.
n | the node |
n
Implements ogdf::planar_separators::BFSTree.
Definition at line 168 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Returns the total number of children, grandchildren etc.
in the subtree rooted at n
.
n | the node |
Implements ogdf::planar_separators::BFSTree.
Definition at line 166 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Allows access to a copy of the graph.
Implements ogdf::planar_separators::BFSTree.
Definition at line 151 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Gets the number of nodes of the graph.
Implements ogdf::planar_separators::BFSTree.
Definition at line 155 of file PlanarSeparatorModule.h.
Returns the level (=depth in the tree) for a node.
n | the node |
n
in the tree Implements ogdf::planar_separators::BFSTree.
Definition at line 162 of file PlanarSeparatorModule.h.
Returns the node that is the parent of n
in the tree.
n | the child node |
Implements ogdf::planar_separators::BFSTree.
Definition at line 164 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Gets the current root node of the tree.
Implements ogdf::planar_separators::BFSTree.
Definition at line 153 of file PlanarSeparatorModule.h.
|
inline |
Initializes all internal arrays.
Definition at line 136 of file PlanarSeparatorModule.h.
Checks if an edge is a tree-edge.
e | the edge to be checked |
Implements ogdf::planar_separators::BFSTree.
Definition at line 160 of file PlanarSeparatorModule.h.
Definition at line 214 of file PlanarSeparatorModule.h.
Definition at line 216 of file PlanarSeparatorModule.h.
Definition at line 215 of file PlanarSeparatorModule.h.
Definition at line 218 of file PlanarSeparatorModule.h.
Definition at line 212 of file PlanarSeparatorModule.h.
Definition at line 217 of file PlanarSeparatorModule.h.
Definition at line 213 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 209 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 210 of file PlanarSeparatorModule.h.