From c08a177c43692e0ebd4145ac2db17a8b751ee3a4 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Tue, 21 Jun 2022 17:19:04 +0200 Subject: [PATCH] Fix filenames --- network_attack_propagation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network_attack_propagation.py b/network_attack_propagation.py index 9631f63..2a0d44e 100644 --- a/network_attack_propagation.py +++ b/network_attack_propagation.py @@ -211,7 +211,7 @@ def bus_experiment(): sizes = [0, 8, 15] for i in sizes: bus, bus_avg_degree, node_count = bus_network(20 + i) - do_graph_animation('bus{i}.gif', bus, 90, nx.spring_layout) + do_graph_animation(f'bus{i}.gif', bus, 90, nx.spring_layout) speeds.append(bus.rounds_survived / node_count) degrees.append(bus_avg_degree) print(f"\n{node_count} NODE bus") @@ -227,7 +227,7 @@ def ring_experiment(): sizes = [0, 8, 15] for i in sizes: ring, ring_avg_degree, node_count = ring_network(20 + i) - do_graph_animation('bus{i}.gif', ring, 90, nx.circular_layout) + do_graph_animation(f'ring{i}.gif', ring, 90, nx.circular_layout) speeds.append(ring.rounds_survived / node_count) degrees.append(ring_avg_degree) print(f"\n{node_count} NODE ring")