MathGroup Archive 2004

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

Search the Archive

Re: Tree and Lists

  • To: mathgroup at
  • Subject: [mg48350] Re: [mg48234] Tree and Lists
  • From: Omega Consulting <info at>
  • Date: Tue, 25 May 2004 07:17:18 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

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.

Omega Consulting
The final answer to your Mathematica needs.

  • References:
  • 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