Use kamada_kawai layout in star topology
This commit is contained in:
parent
78e3b287fb
commit
816d1e53bf
@ -188,7 +188,7 @@ def main():
|
|||||||
do_graph_animation('ring.gif', ring, 20, nx.circular_layout)
|
do_graph_animation('ring.gif', ring, 20, nx.circular_layout)
|
||||||
|
|
||||||
star, star_avg_rank = star_network()
|
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__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user