TTK
|
class representing a node of a tree and the link to its parent if not the root More...
#include <DynamicGraph.h>
Public Member Functions | |
DynGraphNode () | |
DynGraphNode (const DynGraphNode &other) | |
DynGraphNode & | operator= (const DynGraphNode &other) |
Type | getWeight () const |
bool | hasParent () const |
void | evert () |
Make this node the root of its tree. | |
DynGraphNode * | findRoot () const |
Get representative node. | |
idSuperArc | findRootArc () const |
idSuperArc | getCorArc () const |
Get the arcs corresponding to this subtree. | |
void | setRootArc (const idSuperArc arcId) |
std::tuple< DynGraphNode< Type > *, DynGraphNode< Type > * > | findMinWeightRoot () const |
bool | insertEdge (DynGraphNode *const n, const Type weight, const idSuperArc corArc) |
void | removeEdge () |
Public Attributes | |
DynGraphNode * | parent_ |
Type | weight_ |
idSuperArc | corArc_ |
class representing a node of a tree and the link to its parent if not the root
Definition at line 291 of file DynamicGraph.h.
|
inlineexplicit |
Definition at line 297 of file DynamicGraph.h.
|
inline |
Definition at line 301 of file DynamicGraph.h.
void ttk::ftr::DynGraphNode< Type >::evert | ( | ) |
Make this node the root of its tree.
Definition at line 106 of file DynamicGraph_Template.h.
std::tuple< DynGraphNode< Type > *, DynGraphNode< Type > * > ttk::ftr::DynGraphNode< Type >::findMinWeightRoot | ( | ) | const |
Get representative node and kepp track of the node with the min weight on the path
Definition at line 170 of file DynamicGraph_Template.h.
DynGraphNode< Type > * ttk::ftr::DynGraphNode< Type >::findRoot | ( | ) | const |
Get representative node.
Definition at line 142 of file DynamicGraph_Template.h.
idSuperArc ttk::ftr::DynGraphNode< Type >::findRootArc | ( | ) | const |
Get the arcs corresponding to this subtree: find the root before
Definition at line 158 of file DynamicGraph_Template.h.
|
inline |
Get the arcs corresponding to this subtree.
Definition at line 339 of file DynamicGraph.h.
|
inline |
Definition at line 316 of file DynamicGraph.h.
|
inline |
Definition at line 320 of file DynamicGraph.h.
bool ttk::ftr::DynGraphNode< Type >::insertEdge | ( | DynGraphNode< Type > *const | n, |
const Type | weight, | ||
const idSuperArc | corArc | ||
) |
Create a new edge between this node and the node n
Definition at line 190 of file DynamicGraph_Template.h.
|
inline |
Definition at line 305 of file DynamicGraph.h.
void ttk::ftr::DynGraphNode< Type >::removeEdge | ( | ) |
Remove the link between this node and its parent, thus making a new root
Definition at line 226 of file DynamicGraph_Template.h.
void ttk::ftr::DynGraphNode< Type >::setRootArc | ( | const idSuperArc | arcId | ) |
Definition at line 164 of file DynamicGraph_Template.h.
idSuperArc ttk::ftr::DynGraphNode< Type >::corArc_ |
Definition at line 295 of file DynamicGraph.h.
DynGraphNode* ttk::ftr::DynGraphNode< Type >::parent_ |
Definition at line 292 of file DynamicGraph.h.
Type ttk::ftr::DynGraphNode< Type >::weight_ |
Definition at line 293 of file DynamicGraph.h.