Show infections in star topology

This commit is contained in:
Marcin Kostrzewski 2022-06-16 22:12:44 +02:00
parent 816d1e53bf
commit 1bca995878

View File

@ -188,7 +188,8 @@ def main():
do_graph_animation('ring.gif', ring, 20, nx.circular_layout)
star, star_avg_rank = star_network()
do_graph_animation('star.gif', star, 5, nx.kamada_kawai_layout)
list(star.get_nodes())[1].is_infected = True
do_graph_animation('star.gif', star, 20, nx.kamada_kawai_layout)
if __name__ == "__main__":