Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 490 Bytes

engines.rst

File metadata and controls

22 lines (13 loc) · 490 Bytes

Engines

To use a different layout engine than the default dot when rendering your graph, you can use the engine argument on the constructor of .Graph or .Digraph.

>>> import graphviz # doctest: +NO_EXE

>>> g = graphviz.Graph(engine='neato')

You can also change the ~.Graph.engine attribute on an existing instance:

>>> g.engine = 'circo' # doctest: +NO_EXE