0

I'm trying to draw a directed graph in python with networkx

It uses Fruchterman-Reingold force-directed algorithm to position nodes. However, I couldn't get a result of graph with minimum overlapping edges. I want something like this in NetworkX or some other python API.

Can Fruchterman-Reingold algorithm produce a graph with minimum overlapping edges? If it can, which parameter should I adjust? If it can not, is there any API or alogrithm to use in python?

My code to visualize

pos = nx.spring_layout(G, k=100, iterations=500, seed=1)

enter image description here

Let me know if you need more info.!

Thanks!

paulc1111
  • 631
  • 3
  • 14
  • 32

0 Answers0