Create a function/module that generates paths from a networkX graph for a given set of ODs and Ds origins and destinations using some method and params .
def generate_paths(G,Os, Ds, attr,params):
returns paths
input:
- G - networkX graph
- Os,Ds - subset of nodes for origins and destinations
- attr - attribute for which the cost is used (length, travel time, degree or some other function of available attribues on edges
output:
- paths - we need to think of how to export it, store it and the use it in SUMO.
Create a function/module that generates paths from a
networkXgraph for a given set ofODsandDsorigins and destinations using some method andparams.input:
output: