1
0
Fork
You've already forked treedrawing
0
Naive Rooted Tree Drawing Algorithm
  • Python 100%
2025年03月06日 11:47:38 +08:00
images Simplified fixCoord 2025年03月05日 00:52:05 +08:00
.gitignore Simplified fixCoord 2025年03月05日 00:52:05 +08:00
example.py Remake find duplicate coord in fixCoord 2025年03月06日 11:47:38 +08:00
LICENSE Initial commit 2021年08月16日 21:06:04 +08:00
README.md Simplified fixCoord 2025年03月05日 00:52:05 +08:00
tdcore.py Remake find duplicate coord in fixCoord 2025年03月06日 11:47:38 +08:00

treedrawing

Naive Rooted Tree Drawing Algorithm

The objective is simple. From this . . .

Input Tree Data

. . . to this!

Output Tree Drawing

Of course, the tree data above is just an example. Input tree can be a "pointer" to database, spreadsheet, etc.

This is written in Python and parts of the algorithm are recursive. Hence, expect the performance to be slower and memory-intensive for larger trees.

Algorithm Description

https://github.com/poypoyan/matematex/blob/main/files/treedrawing.pdf

Installation & Tutorial

  1. Just download the ZIP for this repository, extract to a folder.
  2. Just run python example.py (Windows) or python3 example.py (Lunix) in your terminal.
  3. The example.py contains information on how to use tdcore.py.

Found a bug? Suggest a feature? Please post on issues.