Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61748 > unrolled thread

Re: Tree library - multiple children

Started byJoel Goldstick <joel.goldstick@gmail.com>
First post2013-12-12 14:40 -0500
Last post2013-12-12 14:40 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Tree library - multiple children Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-12 14:40 -0500

#61748 — Re: Tree library - multiple children

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-12-12 14:40 -0500
SubjectRe: Tree library - multiple children
Message-ID<mailman.4019.1386877642.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Thu, Dec 12, 2013 at 2:38 PM, MRAB <python@mrabarnett.plus.com> wrote:

> On 12/12/2013 19:30, Joel Goldstick wrote:
>
>> On Thu, Dec 12, 2013 at 2:26 PM, Neil Cerutti <neilc@norwich.edu
>> <mailto:neilc@norwich.edu>> wrote:
>>
>>     On 2013-12-12, Ricardo Aráoz <ricaraoz@gmail.com
>>     <mailto:ricaraoz@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]
>>
>> I think that was a type for this:
>>
>>  I think that was a typo for "typo". :-)


OMG!   I saw that too!

>
>
>  [[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.
>>
>>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web