I have a very large network (road network from an entire country) which I load into networkx to calculate distances between points. This works fine and is very fast if I just want to know the fastest route between two points. However, I want to know route alternatives as well (if one route is for example 1000km, I want to know the alternative of 1010, 1018, 1032 and 1042km as well). I thought of using the all_simple_paths function of networkx, but this is really slow and will take days to run. Can anybody suggest an alternative approach?
Thanks!