|
Aleph-w 7.10.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 746 of file tpl_maxflow.H.
| using Aleph::FlowPath< Net >::Arc = typename Net::Arc |
Definition at line 748 of file tpl_maxflow.H.
| using Aleph::FlowPath< Net >::Flow_Type = typename Net::Flow_Type |
Definition at line 750 of file tpl_maxflow.H.
| using Aleph::FlowPath< Net >::Node = typename Net::Node |
Definition at line 749 of file tpl_maxflow.H.
|
inlinenoexcept |
Check if a path is empty.
| none |
Definition at line 763 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 775 of file tpl_maxflow.H.
References Aleph::FlowPath< Net >::arcs, and Aleph::DynList< T >::size().
| DynList<Arc *> Aleph::FlowPath< Net >::arcs |
Arcs in the path (source to sink order)
Definition at line 752 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 754 of file tpl_maxflow.H.
Referenced by Aleph::decompose_flow().
| DynList<Node *> Aleph::FlowPath< Net >::nodes |
Nodes in the path.
Definition at line 753 of file tpl_maxflow.H.
Referenced by Aleph::decompose_flow().