Commit 8a4c06c3 authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Don't make a nested dict when (re)adding edges in undo function.

Fixes crash when undoing simulated router failures.
parent 59fe1532
......@@ -1498,7 +1498,7 @@ class Simulation:
self.graph.add_node(router)
for (u, v, w) in edges:
self.graph.add_edge(u, v, weight=w)
self.graph.add_edge(u, v, w)
del self.changes[idx]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment