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) where node_labels is a tuple of str (source_label, sink_label), node_ids a tuple of int (source_id, sink_id) and rate a float.

Returns
CommoditySingleSourceSink

Commodity object created from data.