Show infections in star topology
This commit is contained in:
parent
816d1e53bf
commit
1bca995878
@ -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__":
|
||||
|
Loading…
Reference in New Issue
Block a user