Author of code2flow here (https://code2flow.com) - I think you could use my tool to easily create many types of trees. It's not generic, as in, it is focused on charting programs/algorithms and workflows but I've seen people (ab)use it for many different use cases, like so: https://code2flow.com/fRRlCK