Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Dinic_Node_Info< Flow_Type > Struct Template Reference

Level information for Dinic's algorithm. More...

#include <tpl_maxflow.H>

Public Member Functions

void reset () noexcept
 

Public Attributes

long level = -1
 BFS level from source (-1 = unreachable)
 
bool blocked = false
 Whether the node is blocked in the current phase.
 
size_t current_arc = 0
 Current arc index for current-arc optimization.
 

Detailed Description

template<typename Flow_Type>
struct Aleph::Dinic_Node_Info< Flow_Type >

Level information for Dinic's algorithm.

Stores the BFS level (distance from source) for each node. Used to construct level graphs for blocking flow computation.

Definition at line 110 of file tpl_maxflow.H.

Member Function Documentation

◆ reset()

Member Data Documentation

◆ blocked

Whether the node is blocked in the current phase.

Definition at line 113 of file tpl_maxflow.H.

Referenced by Aleph::Dinic_Node_Info< Flow_Type >::reset().

◆ current_arc

template<typename Flow_Type >
size_t Aleph::Dinic_Node_Info< Flow_Type >::current_arc = 0

Current arc index for current-arc optimization.

Definition at line 114 of file tpl_maxflow.H.

Referenced by Aleph::Dinic_Node_Info< Flow_Type >::reset().

◆ level

BFS level from source (-1 = unreachable)

Definition at line 112 of file tpl_maxflow.H.

Referenced by Aleph::Dinic_Node_Info< Flow_Type >::reset().


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