CommoditySingleSourceSink.from_labels_and_id¶
- classmethod CommoditySingleSourceSink.from_labels_and_id(data) paminco.net.demand.CommoditySingleSourceSink[source]¶
Construct from fully specified data (labels and ids).
- Parameters
- datatuple
(node_labels, ndoes_ids, rate)wherenode_labelsis a tuple of str (source_label, sink_label),node_idsa tuple of int (source_id, sink_id) andratea float.
- Returns
- CommoditySingleSourceSink
Commodity object created from
data.