CommodityMultiSourceSink.to_dict

CommodityMultiSourceSink.to_dict(labels: bool = True)[source]

Get commodity as dict.

Parameters
labelsbool, default=True

If True, returned dict has node labels as keys, else node indices.

Returns
dict

Commodity as dict.