Creating a tree in Python -
I have a string of lines indented on the tab that looks like this:
Node A node B node C node D node E node F
and I hope to get a data structure where I can cross the tree with the following:
< Pre> print data [node a] [node b] [node c] = & gt; I give to all children under node C.
How can I do this with Python? I do not know what to find for it! Any help would really be appreciated.
You should look. This is a great library for graph / tree data structures.
And to help you get started tab how to explain the different data in the paste structure test.
Comments
Post a Comment