Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Commodity< Node, Flow_Type > Struct Template Reference

Commodity definition for multi-commodity flow. More...

#include <tpl_multicommodity.H>

Collaboration diagram for Aleph::Commodity< Node, Flow_Type >:
[legend]

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.
 
Nodesource
 Source node for this commodity.
 
Nodesink
 Sink node for this commodity.
 
Flow_Type demand
 Required flow amount.
 
std::string name
 Optional descriptive name.
 

Detailed Description

template<typename Node, typename Flow_Type = double>
struct Aleph::Commodity< Node, Flow_Type >

Commodity definition for multi-commodity flow.

Represents a single commodity with its source, sink, demand, and per-arc costs.

Template Parameters
NodeNode type of the network.
Flow_TypeNumeric type for flow values.

Definition at line 130 of file tpl_multicommodity.H.

Constructor & Destructor Documentation

◆ Commodity() [1/2]

Default constructor.

Definition at line 139 of file tpl_multicommodity.H.

◆ Commodity() [2/2]

template<typename Node , typename Flow_Type = double>
Aleph::Commodity< Node, Flow_Type >::Commodity ( size_t  _id,
Node _src,
Node _sink,
Flow_Type  _demand,
const std::string &  _name = "" 
)
inline

Full constructor.

Definition at line 142 of file tpl_multicommodity.H.

Member Data Documentation

◆ demand

Required flow amount.

Definition at line 135 of file tpl_multicommodity.H.

◆ id

Unique commodity identifier.

Definition at line 132 of file tpl_multicommodity.H.

◆ name

template<typename Node , typename Flow_Type = double>
std::string Aleph::Commodity< Node, Flow_Type >::name

Optional descriptive name.

Definition at line 136 of file tpl_multicommodity.H.

◆ sink

Sink node for this commodity.

Definition at line 134 of file tpl_multicommodity.H.

◆ source

template<typename Node , typename Flow_Type = double>
Node* Aleph::Commodity< Node, Flow_Type >::source

Source node for this commodity.

Definition at line 133 of file tpl_multicommodity.H.


The documentation for this struct was generated from the following file: