Python package can construct and export trees to and from Python lists, dictionaries, and pandas DataFrames. This article will introduce basic tree concepts, how to construct trees with the Python package, tree traversal, search, modification, and export methods. The article ends off with ways to use trees for To-Do Recursively traversal the current node’s left subtree.

10m read timeFrom towardsdatascience.com
Post cover image
Table of contents
Python Tree Implementation with BigTreeTable of ContentsTree Basics and TerminologiesBigtree SetupConstructing TreesTree Traversal AlgorithmsTree Search MethodsTree Modification MethodsExporting TreesAdditional: Using To-Do List with bigtreeAdditional: Extending to TrieAdditional: Directed Acyclic Graph (DAG)Related Links

Sort: