draw binary tree by matplotlib
Project description
draw binary tree by matplotlib with three methods:
draw_full_tree([“A”,”B”,”C”,”D”,””,’F’])
draw_link_tree([[‘A’,1,2],[‘B’,3,-1],[‘C’,4,5],[‘D’,-1,-1],[‘F’,-1,-1],[‘G’,-1,-1]])
draw_list_tree(listtree=[‘A’,[‘B’,[‘C’,None,None],None],[‘D’,[‘F’,None,None],None]])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DrawBinTree-0.1.5.tar.gz
(2.2 kB
view hashes)