https://github.com/xflr6/graphviz
Tip revision: 885220d49eee1f04cd6493cc69acd72684c59e05 authored by Sebastian Bank on 15 November 2020, 15:52:34 UTC
release 0.15
release 0.15
Tip revision: 885220d
api.rst
.. _api:
API Reference
=============
.. autosummary::
:nosignatures:
~graphviz.Graph
~graphviz.Digraph
~graphviz.Source
graphviz.render
graphviz.pipe
graphviz.view
.. note::
The two main classes :class:`.Graph` and :class:`.Digraph` (for creating
`undirected` vs. `directed` graphs) have exactly the same API.
Their division reflects the fact that both graph types cannot be mixed.
Graph
-----
.. autoclass:: graphviz.Graph
:members:
source,
node, edge, edges, attr, subgraph,
format, engine, encoding,
clear, copy, pipe, save, render, view,
directed
Digraph
-------
.. autoclass:: graphviz.Digraph
:members:
source,
node, edge, edges, attr, subgraph,
format, engine, encoding,
clear, copy, pipe, save, render, view,
directed
Source
------
.. autoclass:: graphviz.Source
:members:
format, engine, encoding,
copy, pipe, save, render, view,
from_file, source
Low-level functions
-------------------
The functions in this section are provided to work directly with existing
files and strings instead of using the object-oriented DOT creation methods
documented above.
.. autofunction:: graphviz.render
.. autofunction:: graphviz.pipe
.. autofunction:: graphviz.view
Other
-----
.. autodata:: graphviz.ExecutableNotFound
:annotation:
.. autodata:: graphviz.RequiredArgumentError
:annotation:
.. autofunction:: graphviz.version
.. autofunction:: graphviz.escape
.. autofunction:: graphviz.nohtml
Manually maintained whitelists (see https://graphviz.gitlab.io/_pages/pdf/dot.1.pdf,
http://www.graphviz.org/doc/info/output.html, and ``dot -T:`` output):
.. autodata:: graphviz.ENGINES
:annotation:
.. autodata:: graphviz.FORMATS
:annotation:
.. autodata:: graphviz.RENDERERS
:annotation:
.. autodata:: graphviz.FORMATTERS
:annotation: