On Tue, 7 Jul 2009 05:30:22 -0500
"Edward K. Ream" <[email protected]> wrote:

> > From a graph theoretic point of view, tnodes model vertices and
> > vnodes model edges.  
> 
> In the one-node world, vnodes model nodes, and v.children models the
> (directed) links from v to its children.  This is a far simpler (and
> thus far better) model than the vnode/tnode model.  This ends the
> debate as far as I am concerned.

I think derwisch's point was that you lose the vnode uA for
annotating / attributing the edge.  Because v.children entries don't
carry attributes.

I don't think it's a problem, if you want to model graphs directly in
leo's data structure you can use leo-nodes to model both graph nodes
and graph edges, with a uA to indicate whether it's an edge or a node.
This allows for extremely rich (i.e. a whole subtree if you want)
attributing of edges.  So for example you could store history for the
edge's attributes in subnodes of the leo-node representing the edge.

Or you can do what backlinks.py does and store all the edge information
in uAs, so the edge isn't any first class leo data structure.  Pickling
(or otherwise storing) nested dictionaries lets you do anything you want
really.

Cheers -Terry

--~--~---------~--~----~------------~-------~--~----~
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