File: engines.rst

package info (click to toggle)
python-graphviz 0.20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,188 kB
  • sloc: python: 4,098; makefile: 13
file content (22 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Engines
-------

To use a different `layout engine <DOT layouts_>`_ than the default ``dot``
when rendering your graph, you can use the ``engine`` argument
on the constructor of :class:`.Graph` or :class:`.Digraph`.

.. doctest::

    >>> import graphviz  # doctest: +NO_EXE

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

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

.. doctest::

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


.. include:: _links.rst