Skip to content

merc1er/binTree-toSVG-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Display SVG python binTree

Installation

For macOS:

  • Install graphviz brew install graphviz

  • Then install pygraphviz for Python3 pip3 install pygraphviz

  • Download toSVG.py here

  • In your Python file, import toSVG.py from toSVG import *

  • Call the function toSVG(tree, "name")

There is no simple installation for windows

Example of a tree

SVG tree