Expand description
Module for creating and analysing commodity graphs
Enumsยง
Functionsยง
- build_
and_ validate_ commodity_ graphs_ for_ model - Builds and validates commodity graphs for the entire model.
- create_
commodities_ ๐graph_ for_ region_ year - Creates a directed graph of commodity flows for a given region and year.
- prepare_
commodities_ ๐graph_ for_ validation - Prepares a graph for validation with
validate_commodities_graph
. - topo_
sort_ ๐commodities - Performs topological sort on the commodity graph to get the ordering for investments
- validate_
commodities_ ๐graph - Validates that the commodity graph follows the rules for different commodity types.
Type Aliasesยง
- Commodities
Graph ๐ - A graph of commodity flows for a given region and year