Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Simplex_Node_Info< Ftype > Struct Template Reference

Node information for Network Simplex algorithm. More...

#include <tpl_netcost.H>

Public Attributes

Ftype potential = 0
 Node potential (dual variable pi).
 
void * parent = nullptr
 Parent node in the spanning tree (nullptr for root).
 
void * parent_arc = nullptr
 Arc connecting this node to its parent.
 
long depth = 0
 Depth in the spanning tree (root has depth 0).
 
bool arc_from_parent = true
 True if parent_arc is oriented from parent towards this node.
 
long mark = 0
 Mark used for LCA computation.
 

Detailed Description

template<typename Ftype>
struct Aleph::Simplex_Node_Info< Ftype >

Node information for Network Simplex algorithm.

Stores tree structure and dual variables (potentials) for each node. The tree is represented with parent pointers and a mark for efficient tree membership testing.

Template Parameters
FtypeFlow/cost numeric type.

Definition at line 1143 of file tpl_netcost.H.

Member Data Documentation

◆ arc_from_parent

template<typename Ftype >
bool Aleph::Simplex_Node_Info< Ftype >::arc_from_parent = true

True if parent_arc is oriented from parent towards this node.

Definition at line 1158 of file tpl_netcost.H.

◆ depth

template<typename Ftype >
long Aleph::Simplex_Node_Info< Ftype >::depth = 0

Depth in the spanning tree (root has depth 0).

Definition at line 1155 of file tpl_netcost.H.

◆ mark

template<typename Ftype >
long Aleph::Simplex_Node_Info< Ftype >::mark = 0

Mark used for LCA computation.

Definition at line 1161 of file tpl_netcost.H.

◆ parent

template<typename Ftype >
void* Aleph::Simplex_Node_Info< Ftype >::parent = nullptr

Parent node in the spanning tree (nullptr for root).

Definition at line 1149 of file tpl_netcost.H.

◆ parent_arc

template<typename Ftype >
void* Aleph::Simplex_Node_Info< Ftype >::parent_arc = nullptr

Arc connecting this node to its parent.

Definition at line 1152 of file tpl_netcost.H.

◆ potential

template<typename Ftype >
Ftype Aleph::Simplex_Node_Info< Ftype >::potential = 0

Node potential (dual variable pi).

Definition at line 1146 of file tpl_netcost.H.


The documentation for this struct was generated from the following file: