Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/morinokami/py3dot
- Owner: morinokami
- Created: 2015-06-01T13:52:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-04T06:39:33.000Z (over 9 years ago)
- Last Synced: 2024-10-13T11:09:15.770Z (3 months ago)
- Language: Python
- Size: 168 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 Graphgraph = 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)