From 46ae4299c4afc6942cade396d6bd60814aa11834 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Tue, 21 Jun 2022 16:15:55 +0200 Subject: [PATCH] Fix typos in prints --- 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 4a8ce9d..f2bfa77 100644 --- a/network_attack_propagation.py +++ b/network_attack_propagation.py @@ -209,7 +209,7 @@ def bus_experiment(): do_graph_animation(f'bus{i}.gif', bus, 90, nx.spiral_layout) speeds.append(bus.rounds_survived / node_count) degrees.append(bus_avg_degree) - print(f"\n{node_count} NODE STAR") + print(f"\n{node_count} NODE BUS") print(f"average degree = {bus_avg_degree}") print(f"propagation speed = {round(speeds[-1], 2)}") print(f"bus_{i} rounds survived = {bus.rounds_survived + 1}") @@ -225,7 +225,7 @@ def ring_experiment(): do_graph_animation(f'ring{i}.gif', ring, 90, nx.spiral_layout) speeds.append(ring.rounds_survived / node_count) degrees.append(ring_avg_degree) - print(f"\n{node_count} NODE STAR") + print(f"\n{node_count} NODE RING") print(f"average degree = {ring_avg_degree}") print(f"propagation speed = {round(speeds[-1], 2)}") print(f"ring_{i} rounds survived = {ring.rounds_survived + 1}")