From 816d1e53bf04d812ca140b46b1b38bd5889f557f Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Thu, 16 Jun 2022 22:08:24 +0200 Subject: [PATCH] Use kamada_kawai layout in star topology --- network_attack_propagation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network_attack_propagation.py b/network_attack_propagation.py index da6cb59..ddad01c 100644 --- a/network_attack_propagation.py +++ b/network_attack_propagation.py @@ -188,7 +188,7 @@ 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.spring_layout) + do_graph_animation('star.gif', star, 5, nx.kamada_kawai_layout) if __name__ == "__main__":