tralda¶

tralda is an open-source Python library for tree algorithms and data structures. It provides efficient implementations of algorithms for tree manipulation and analysis, as well as a tree data structure with various methods for tree traversal and manipulation.
Quick start¶
from tralda.datastructures import Tree
tree = Tree.random_tree(10) # random tree with 10 leaves
tree.print_tree()
Output:
See the User Guide for a full walkthrough, or jump straight to the API Reference.