Expand description
Module for creating and analysing commodity graphs
Enumsยง
Functionsยง
- build_
commodity_ graphs_ for_ model - Builds base commodity graphs for each region and year
- create_
commodities_ ๐graph_ for_ region_ year - Creates a directed graph of commodity flows for a given region and year.
- get_
edge_ ๐attributes - Gets custom DOT attributes for edges in a commodity graph
- prepare_
commodities_ ๐graph_ for_ validation - Prepares a graph for validation with
validate_commodities_graph
. - save_
commodity_ graphs_ for_ model - Saves commodity graphs to file
- 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.
- validate_
commodity_ graphs_ for_ model - Validates commodity graphs for the entire model.
Type Aliasesยง
- Commodities
Graph - A graph of commodity flows for a given region and year