|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Represents a flow path from source to sink. More...
#include <tpl_maxflow.H>
Public Types | |
| using | Arc = typename Net::Arc |
| using | Node = typename Net::Node |
| using | Flow_Type = typename Net::Flow_Type |
Public Member Functions | |
| bool | is_empty () const noexcept |
| Check if a path is empty. | |
| size_t | length () const noexcept |
| Get path length (number of arcs). | |
Public Attributes | |
| DynList< Arc * > | arcs |
| Arcs in the path (source to sink order) | |
| DynList< Node * > | nodes |
| Nodes in the path. | |
| Flow_Type | flow {0} |
| Flow on this path. | |
Represents a flow path from source to sink.
A flow path consists of:
| Net | Network type. |
Definition at line 720 of file tpl_maxflow.H.
Definition at line 722 of file tpl_maxflow.H.
Definition at line 724 of file tpl_maxflow.H.
Definition at line 723 of file tpl_maxflow.H.
|
inlinenoexcept |
Check if a path is empty.
| none |
Definition at line 737 of file tpl_maxflow.H.
References Aleph::FlowPath< Net >::arcs, and Aleph::HTList::is_empty().
|
inlinenoexcept |
Get path length (number of arcs).
| none |
Definition at line 746 of file tpl_maxflow.H.
References Aleph::FlowPath< Net >::arcs, and Aleph::HTList::size().
Arcs in the path (source to sink order)
Definition at line 726 of file tpl_maxflow.H.
Referenced by Aleph::decompose_flow(), Aleph::FlowPath< Net >::is_empty(), and Aleph::FlowPath< Net >::length().
| Flow_Type Aleph::FlowPath< Net >::flow {0} |
Flow on this path.
Definition at line 728 of file tpl_maxflow.H.
Referenced by Aleph::decompose_flow().
Nodes in the path.
Definition at line 727 of file tpl_maxflow.H.
Referenced by Aleph::decompose_flow().