I have my graph object, im trying to find a method to find a minimum for a group of nodes.
Ex. Nodes:
input_nodes=[123,45]
graph_nodes=[10, 76,123,45,98,456]
I run an algoritm which calculate shortest path between every node in the graph and every node in the input. I have a dictionary with all shortest paths beetwen nodes :
{10:{123:0.56, 45:0.2}, 76:{123:0, 45:0.23}......
and so on for every graphs node. How to get only min weight which is different from zero:
Like this:
Minimum path node 10 has with node 45, Minimum path node 76 has with node 45, ...... Thatnks