MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Tree and Lists


On May 19, 2004, at 1:42 AM, Hermann Schmitt wrote:

> Hello,
> is there a general principle, how to represent trees by Lists of Lists.
> Hermann Schmitt

There are many ways to represent a tree in Mathematica. It depends a 
lot on what you want to do with your trees.

However, I find the simplest representation to be an expression, 
f[x,y,z,...], where f is the parent and x, y, z, etc. are children. If 
x, y, z, ... are atomic, then they are leaves. If they are expressions, 
then they are sub-trees.

Then when you're done creating your tree, you can view it with an 
application we wrote called TreeView.

http://omegaconsultinggroup.com/Products/tree

----------------------------------------------
Omega Consulting
The final answer to your Mathematica needs.
http://omegaconsultinggroup.com


  • Prev by Date: WTD: point intersection in space
  • Next by Date: Re: Searching algorithm
  • Previous by thread: Tree and Lists
  • Next by thread: Re: Tree and Lists