r/coolgithubprojects • • 9d ago

A little pre-AI project of mine

https://github.com/viocost/treevis

Back in 2022, before all the AI madness, I built this tiny Python library that draws binary trees directly in your terminal.

It automatically handles spacing, supports colored nodes, and can even display multiple trees side by side.

Nothing groundbreaking, just a fun little project I thought I'd share.

         _____7_______                            _____7_______
        /             \                          /             \
     __3_          ___17______                __3_          ___19___
    /    \        /           \              /    \        /        \
   1      5      11          _25            1      5      11       _25
  / \    / \    /  \        /   \          / \    / \    /  \     /   \
 0   2  4   6  9   15     _20   27        0   2  4   6  9   15   20   27
                         /
                        19
0 Upvotes

0 comments sorted by