CommodityMultiSourceSink.decompose

CommodityMultiSourceSink.decompose(max_iter=None, as_label: bool = True)[source]

Decompose CommodityMultiSourceSink into several single commodities.

Parameters
max_iterint, optional

Number of iterations for decomposition

as_labelbool, default=True

If True return tuples with node labels, else with node ids.

Returns
list

Single commodities as tuples (source, sink, rate).