Tree library - multiple children
Neil Cerutti
neilc at norwich.edu
Thu Dec 12 14:26:57 EST 2013
On 2013-12-12, Ricardo Aráoz <ricaraoz at gmail.com> wrote:
> I need to use a tree structure. Is there a good and known library?
> Doesn't have to be binary tree, I need to have multiple children per node.
Have you tried nested lists?
[[1, 2], [3, 4]
Can represent
root
/ \
1-2 3-4
Python makes it very easy to manipulate such a structure. It
isn't clear that you need more than that yet.
--
Neil Cerutti
More information about the Python-list
mailing list