/tergraw

Draw graphs in the terminal

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

TERminal GRaph drAWing

A dumb and simple graph printing in your terminal, implemented in Python.

Here is the API:

GRAPH = {'a': {'b', 'c'}, 'd': {'b', 'e'}, 'f': {'g'}}

print('\n'.join(tergraw.pretty_view(GRAPH, oriented=True)))

Installation:

pip install tergraw

Needs the graphviz library to be installed.

links: tergraw on github and pypi