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 details)
File details
Details for the file DrawBinTree-0.1.5.tar.gz.
File metadata
- Download URL: DrawBinTree-0.1.5.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dbe773241fba901a7a38a804b015cbd6a3bc50047a9cf71bbad8fbda390836b
|
|
| MD5 |
fb98a4d3828409dfdd3bcd6b1d0fc7e3
|
|
| BLAKE2b-256 |
157243a2cd604fb241381f67d29c92b657a3c2acf7114b69eff43bb2e6776c61
|