Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::mincost_detail Namespace Reference

Find shortest path using Dijkstra with potentials. More...

Functions

template<typename Flow_Type >
bool same_total (const Flow_Type &a, const Flow_Type &b) noexcept
 

Detailed Description

Find shortest path using Dijkstra with potentials.

Uses reduced costs to ensure non-negative edge weights.

Returns
true if sink is reachable, false otherwise.

Function Documentation

◆ same_total()

template<typename Flow_Type >
bool Aleph::mincost_detail::same_total ( const Flow_Type &  a,
const Flow_Type &  b 
)
noexcept

Definition at line 166 of file tpl_mincost.H.

Referenced by Aleph::solve_transportation(), and Aleph::solve_transshipment().