python-3.xwindowsgraphvizneato

How to use graphviz with neato style in windows?


I want to output the following code in the neato style.

from graphviz import Graph

dot = Graph()

dot.node('a')
dot.node('b')

dot.edge('a', 'b')

print(dot.source)
dot.render('test-output/round-table.gv', view=True)

Solution

  • Use dot.engine = 'neato'for using the neato style.