On Fri, Dec 30, 2011 at 1:19 AM, mdb <[email protected]> wrote:

> I am able to recreate nodes from the sqlite db but I do not fully
> understand how your edges scheme can be used to recreate a tree
> design.  It seems easier to simply give the db a field that tells
> whether a node is a child of another node and if so, which one.  Am I
> missing something?

- Because of clones,  a node can have several parents. Therefore, a
single slot for parent id won't work

- Even if you were able to list all parents (which SQL does not
allow), you would have to specify the child index for every parent (to
retain sibling order)

Given the list of edges (a,b) :

If you want all children of node N, list edges where N is the 'a'
node, and store the 'b' node from every edge. To find parent(s) of N,
list edges where N is the 'b' node.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to