all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Ewoc for trees
@ 2002-12-20 15:41 Eric.Belpaire
  0 siblings, 0 replies; only message in thread
From: Eric.Belpaire @ 2002-12-20 15:41 UTC (permalink / raw)


Hello,

I'm looking for a way to manipulate trees of lisp objects and save those to
a file so that I can 'load' them again later.
I'm wondering whether ewoc.el could be extended or used as a stepping stone
to do this.

A tree's node can have zero, one or more children.
A tree's node can have zero, one or more parents.
A tree has a starting node, which usually has no parents.
Nodes without children are leaves.
There can be circular routes, i.e. links from a node back to the starting
node.

Instead of 'left', a tree would have 'parents' (defined as a list of
nodes).
Instead of 'right', a tree would have 'children' (defined as a list of
nodes).

I've drafted below the correspondence I envisage.

Can someone tell whether this makes sense?
Does someone know whether this has already been implemented?
Any suggestions?

Thanks in advance for any feedback provided.
Eric

;;   collection ==>  ewoc        ==> tree
;;   tin        ==>  ewoc--node  ==> tree_node
;;   cookie     ==>  data or element or elem ==> node_content

Eric BELPAIRE
Equant - CS&N / Access Technology
Le Galion - 4 / 070
18 rue Paul Lafargue
92904 Paris La Defense 10 Cedex
CVS:                       220 1294
Phone:             +33 14641 1294
http://www.equant.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-20 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-20 15:41 Ewoc for trees Eric.Belpaire

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.