18

I am trying to draw a graph with many nodes and edges.

However, the graph is becoming too clumsy, with nodes and edges overlapping. I tried (unsuccessfully), the following, all or combinations of these.

size = "12.0, 20.0!";
margin  = 0.0;
len = 1.0;

I am using neato to generate a png file.

The size specification did not even seem to work.

Any tips will be appreciated.

Masroor
  • 886
  • 1
  • 8
  • 23

2 Answers2

15

Try using SFDP using graph [ overlap=false ].

Liam M
  • 5,306
  • 4
  • 39
  • 55
Augustin
  • 2,444
  • 23
  • 24
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – Pரதீப் Jan 24 '15 at 04:18
  • 5
    @Fireblade He did provide an answer - solved my problem with SFDP. I made a slight amendment to improve his answer. – Liam M May 19 '15 at 01:38
13

Try using sfdp or fdp from the same graphviz package. This tools have two parameters K and repulsiveforce which control how far the nodes will be from each other.

Look here for further details

Vlad
  • 9,180
  • 5
  • 48
  • 67