|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Cost distance functor for Bellman-Ford on residual networks. More...
#include <tpl_netcost.H>
Public Types | |
| using | Distance_Type = typename Net::Flow_Type |
Public Member Functions | |
| Rcost () noexcept=default | |
| Net::Flow_Type | operator() (typename Net::Arc *a) const noexcept |
| Return the cost of an arc. | |
Static Public Member Functions | |
| static void | set_zero (typename Net::Arc *a) noexcept |
| Reset arc to zero state. | |
Cost distance functor for Bellman-Ford on residual networks.
Provides the cost of an arc as its "distance" for shortest path algorithms.
| Net | Network type. |
Definition at line 378 of file tpl_netcost.H.
| using Aleph::Rcost< Net >::Distance_Type = typename Net::Flow_Type |
Definition at line 382 of file tpl_netcost.H.
|
defaultnoexcept |
|
inlinenoexcept |
Return the cost of an arc.
| [in] | a | Arc to get cost from. |
Definition at line 389 of file tpl_netcost.H.
Reset arc to zero state.
Sets capacity to max, flow and cost to zero.
| [in] | a | Arc to reset. |
Definition at line 400 of file tpl_netcost.H.