sphinx.ext.graphviz

See https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html

Example: graphviz plus options

Additionally option :layout: can be used with one of the Graphviz layouts as value, as there are: dot neato fdp sfdp twopi circo.

Source:

.. graphviz::
   :alt: alternative text
   :align: center
   :caption: caption of the graph
   :name: this is a label

   digraph foo {
      "bar" -> "baz";
   }

Result:

alternative text

caption of the graph