Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Tree library - multiple children

Reply
Thread Tools

Re: Tree library - multiple children

 
 
MRAB
Guest
Posts: n/a
 
      12-12-2013
On 12/12/2013 19:30, Joel Goldstick wrote:
> On Thu, Dec 12, 2013 at 2:26 PM, Neil Cerutti <(E-Mail Removed)
> <(E-Mail Removed)>> wrote:
>
> On 2013-12-12, Ricardo ArŠoz <(E-Mail Removed)
> <(E-Mail Removed)>> 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]
>
> I think that was a type for this:
>

I think that was a typo for "typo".

> [[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.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tree library - multiple children Ricardo ArŠoz Python 2 12-13-2013 10:55 PM
Re: Tree library - multiple children Joel Goldstick Python 0 12-12-2013 07:30 PM
Re: Tree library - multiple children Neil Cerutti Python 0 12-12-2013 07:26 PM
Re: Tree library - multiple children Terry Reedy Python 0 12-12-2013 06:56 PM
B tree, B+ tree and B* tree Stub C Programming 3 11-12-2003 01:51 PM



Advertisments