Skip to content

Aluriak/tergraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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