In ksp_Astar.py, in the following for loop a dictionary object is being changed while iterating over it. Python 3 does not allow it.
|
for u,v, edata in net.in_edges(x, data=True): |
Solution: Can save all the edges that need to be removed in a list inside the loop. Then just outside the loop, use the networkx function
remove_edges_from() to remove these edges from net.
In ksp_Astar.py, in the following for loop a dictionary object is being changed while iterating over it. Python 3 does not allow it.
PathLinker/ksp_Astar.py
Line 237 in d4a44c9
Solution: Can save all the edges that need to be removed in a list inside the loop. Then just outside the loop, use the networkx function
remove_edges_from() to remove these edges from net.