Skip to content

Latest commit

 

History

History
95 lines (66 loc) · 1.85 KB

api.rst

File metadata and controls

95 lines (66 loc) · 1.85 KB

API Reference

~graphviz.Graph ~graphviz.Digraph ~graphviz.Source graphviz.render graphviz.pipe graphviz.view

Note

The two main classes .Graph and .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

graphviz.Graph

Digraph

graphviz.Digraph

Source

graphviz.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.

graphviz.render

graphviz.pipe

graphviz.view

Other

graphviz.ExecutableNotFound

graphviz.RequiredArgumentError

graphviz.version

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

graphviz.ENGINES

graphviz.FORMATS

graphviz.RENDERERS

graphviz.FORMATTERS