Home > Net >  Python graphviz taking huge amount of time during rendering the pdf
Python graphviz taking huge amount of time during rendering the pdf

Time:09-27

I have a large graph with many nodes and edges. The problem I am facing with the Graphviz python package is that rendering the file takes a lot of time.

There are other alternatives mentioned enter image description here

You can open the svg in a browser and print to PDF HOWEVER even at 10% scale on A0 Landscape that requires 2 PAGES and you cant see lettering, thus at full scale it would be more than 100 of those poster pages enter image description here enter image description here

CodePudding user response:

Add this to your input file: graph [nslimit=2 nslimit1=2 maxiter=5000] (values somewhat arbitrary)
And use this commandline dot -v -Tsvg ... (if svg works, then try pdf)
I think dot has the best chance of producing a graph you will like

  • Related