fn init_investment_graph_for_year(
graphs: &IndexMap<(RegionID, u32), CommoditiesGraph>,
year: u32,
commodities: &CommodityMap,
) -> Graph<InvestmentSet, GraphEdge, Directed>Expand description
Initialise an InvestmentGraph for the given year from a set of CommodityGraphs
Commodity graphs for each region are first filtered to only include SVD/SED commodities and
primary edges. Each commodity node is then added to a global investment graph as an
InvestmentSet::Single, with edges preserved from the original commodity graphs.