From: Eric.Belpaire@equant.com
Subject: Ewoc for trees
Date: Fri, 20 Dec 2002 16:41:19 +0100 [thread overview]
Message-ID: <OFF904AD4E.AEFE4242-ONC1256C95.00559685@par.sita.int> (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
reply other threads:[~2002-12-20 15:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OFF904AD4E.AEFE4242-ONC1256C95.00559685@par.sita.int \
--to=eric.belpaire@equant.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.