LarrySnyder/stockpyl

Make `supply_chain_network.nodes` a dict instead of a list for easier referencing

LarrySnyder opened this issue · 1 comments

Dict in which keys are node indices and values are corresponding nodes.

So network.nodes[4] always returns node with index 4, etc.

And deprecate get_node_from_index().