11

I have a tree structure I want to be generated by Dot. Each node has 4 edges to another 4 nodes. In sum there are about 1,000 nodes. If I try to generate it with Dot it takes a very long time (once I let it work like for a hour - CPU usage was 100% all the time but it didn't finish). Is there a way to accelerate this? Maybe by setting down the quality? Or using another (faster?) vizualization software? I've attached my Dot file for you to test it on your own machine.

Thank you. Dot File: http://lh.rs/3fmsfjmbvRw2

arminb
  • 2,036
  • 3
  • 24
  • 43
  • I believe dot is the slowest of all the graphviz layout engines. Have you tried using any of the others? See roadmap @ http://graphviz.org/ – E-man Jun 11 '12 at 04:02

3 Answers3

5

You may want to try setting the nslimit or nslimit1 attributes as mentioned here:

You may also tune the maxiter, mclimit and splines attributes, especially splines=line gave me a huge speedup (albeit being somewhat ugly).

Also, as E-man suggested, dot is really slower than e.g. circo or twopi, so you may consider using one of those, if they look OK for your graph.

P.Péter
  • 1,527
  • 16
  • 39
5

chk this link,laying out a large graph with graphviz

sfdp -x -Goverlap=scale -Tpng data.dot > data.png

Community
  • 1
  • 1
xiaoyifang
  • 919
  • 12
  • 13
2

Importing a large .dot file into Gephi - https://gephi.org is really fast.

Jim Bethancourt
  • 1,061
  • 11
  • 16
  • 1
    I tried to open a large .dot file in gephi, but it is empty. Any chance you can point me to an example? – Patrick Apr 15 '19 at 20:17
  • Hi @Patrick, unfortunately I haven't done much work with it myself and don't have any example files. It's possible your dot file is too complex. The Gephi site (unfortunately) mentions: "Gephi currently doesn’t provide a complete support of the DOT format. Subgraphs are not supported, nor custom attributes or size. Only labels and colors are imported if present. Directed and undirected graphs are supported." - https://gephi.org/users/supported-graph-formats/graphviz-dot-format/ – Jim Bethancourt Apr 16 '19 at 21:01
  • Thanks Jim. I think my DOT format does have sub-graph so Gephi is not working for it. – Patrick Apr 16 '19 at 21:05