Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morinokami/py3dot

Python 3 interface for Graphviz
https://github.com/morinokami/py3dot

Last synced: about 1 month ago
JSON representation

Python 3 interface for Graphviz

Awesome Lists containing this project

README

        

py3dot
======

py3dot is a Python 3 interface for Graphviz.

Usage
-----

Create a simple digraph and draw the graph.
```py
from py3dot import Graph

graph = Graph()
graph.add_edges_from([('A', 'B'), ('A', 'C'), ('B', 'D')])
graph.save_fig('my_graph.png') # yields following fig.
```
![my_graph.png](./images/my_graph.png)