How to use graphviz with neato style in windows?

1.3k Views Asked by At

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)
2

There are 2 best solutions below

0
kame On BEST ANSWER

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

0
G2022 On
dot.graph_attr['layout'] = 'neato'