Function topo_sort_commodities

Source
fn topo_sort_commodities(
    graph: &CommoditiesGraph,
    commodities: &CommodityMap,
) -> Result<Vec<CommodityID>>
Expand description

Performs topological sort on the commodity graph to get the ordering for investments

The returned Vec only includes SVD and SED commodities.