begging for a tree implementation

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Wed Apr 26 19:00:20 EDT 2006


Micah enlightened us with:
> I'm looking for a simple tree implementation: 0-n children, 1 root.
> All the nice methods would be appreciated (getLeaves, isLeaf,
> isRoot, depthfirst, breadthfirst,...)  That's really all I need.  I
> could code one up, but it would take time to debug, and i'm really
> short on time right now.

What kind of tree do you want? B+-tree? Black/Red tree? Binary search
tree?

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list