|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Commodity definition for multi-commodity flow. More...
#include <tpl_multicommodity.H>
Public Member Functions | |
| Commodity () | |
| Default constructor. | |
| Commodity (size_t _id, Node *_src, Node *_sink, Flow_Type _demand, const std::string &_name="") | |
| Full constructor. | |
Public Attributes | |
| size_t | id |
| Unique commodity identifier. | |
| Node * | source |
| Source node for this commodity. | |
| Node * | sink |
| Sink node for this commodity. | |
| Flow_Type | demand |
| Required flow amount. | |
| std::string | name |
| Optional descriptive name. | |
Commodity definition for multi-commodity flow.
Represents a single commodity with its source, sink, demand, and per-arc costs.
| Node | Node type of the network. |
| Flow_Type | Numeric type for flow values. |
Definition at line 130 of file tpl_multicommodity.H.
|
inline |
Default constructor.
Definition at line 139 of file tpl_multicommodity.H.
|
inline |
Full constructor.
Definition at line 142 of file tpl_multicommodity.H.
| Flow_Type Aleph::Commodity< Node, Flow_Type >::demand |
Required flow amount.
Definition at line 135 of file tpl_multicommodity.H.
| size_t Aleph::Commodity< Node, Flow_Type >::id |
Unique commodity identifier.
Definition at line 132 of file tpl_multicommodity.H.
| std::string Aleph::Commodity< Node, Flow_Type >::name |
Optional descriptive name.
Definition at line 136 of file tpl_multicommodity.H.
| Node* Aleph::Commodity< Node, Flow_Type >::sink |
Sink node for this commodity.
Definition at line 134 of file tpl_multicommodity.H.
| Node* Aleph::Commodity< Node, Flow_Type >::source |
Source node for this commodity.
Definition at line 133 of file tpl_multicommodity.H.