Fix filenames
This commit is contained in:
parent
f3a7a4a64d
commit
c08a177c43
@ -211,7 +211,7 @@ def bus_experiment():
|
|||||||
sizes = [0, 8, 15]
|
sizes = [0, 8, 15]
|
||||||
for i in sizes:
|
for i in sizes:
|
||||||
bus, bus_avg_degree, node_count = bus_network(20 + i)
|
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)
|
speeds.append(bus.rounds_survived / node_count)
|
||||||
degrees.append(bus_avg_degree)
|
degrees.append(bus_avg_degree)
|
||||||
print(f"\n{node_count} NODE bus")
|
print(f"\n{node_count} NODE bus")
|
||||||
@ -227,7 +227,7 @@ def ring_experiment():
|
|||||||
sizes = [0, 8, 15]
|
sizes = [0, 8, 15]
|
||||||
for i in sizes:
|
for i in sizes:
|
||||||
ring, ring_avg_degree, node_count = ring_network(20 + i)
|
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)
|
speeds.append(ring.rounds_survived / node_count)
|
||||||
degrees.append(ring_avg_degree)
|
degrees.append(ring_avg_degree)
|
||||||
print(f"\n{node_count} NODE ring")
|
print(f"\n{node_count} NODE ring")
|
||||||
|
Loading…
Reference in New Issue
Block a user