Abstract BFSTree that is realized via NodeArrays. More...
#include <ogdf/graphalg/PlanarSeparatorModule.h>
Inheritance diagram for ogdf::planar_separators::ArrayBFSTree: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 132 of file PlanarSeparatorModule.h.
Constructor.
| G | the graph spanned by the tree |
| rootNode | the root node for the tree |
Definition at line 140 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 179 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Returns all (immediate) children of a node.
| n | the node |
n Implements ogdf::planar_separators::BFSTree.
Definition at line 177 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 175 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Allows access to a copy of the graph.
Implements ogdf::planar_separators::BFSTree.
Definition at line 160 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Gets the number of nodes of the graph.
Implements ogdf::planar_separators::BFSTree.
Definition at line 164 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
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 171 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 173 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Gets the current root node of the tree.
Implements ogdf::planar_separators::BFSTree.
Definition at line 162 of file PlanarSeparatorModule.h.
|
inline |
Initializes all internal arrays.
Definition at line 145 of file PlanarSeparatorModule.h.
|
inlineoverridevirtual |
Checks if an edge is a tree-edge.
| e | the edge to be checked |
Implements ogdf::planar_separators::BFSTree.
Definition at line 169 of file PlanarSeparatorModule.h.
Definition at line 223 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 225 of file PlanarSeparatorModule.h.
Definition at line 224 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 227 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 221 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 226 of file PlanarSeparatorModule.h.
Definition at line 222 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 218 of file PlanarSeparatorModule.h.
|
protected |
Definition at line 219 of file PlanarSeparatorModule.h.