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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -