[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: graphs and trees


graphs and trees
[Simon St.Laurent]
> (Tom Passin had it slightly easier, I think, as he was mostly moving from
> trees to graphs, but the shift was still noticeable.)
>

Yes, but it was really hard to re-create a pseudo-tree for display purposes,
once the graph was constructed.  Going into Extreme, I still had a bug in
that part that I have now been able to correct.

> Overall, my suspicion is that graph serialization is far more
> challenging than tree serialization, as the worst complication in tree
> serialization is the need to add (sometimes arbitrary) order to the
> parts of the tree which aren't considered ordered.

There are a lot of issues, partly because people have different purposes for
doing so.  Also, a graph can have different type of substructures.  Some of
them might be more-or-less hierarchical and some not.  For example, if you
have a graph that includes a taxonomy,  you will probably be able to pull
out a tree for the taxonomy part (assuming that the taxonomy really is a
tree!), because you can traverse down the class-subclass or whatever
relationships.  But other parts of the graph may not resemble hierarchies
that much, and you may have other reasons for serializing them.

> Graph serialization
> offers far more choices about different ways of representing connections
> as well as the general problem of unrolling circular connections into a
> straight-line sequence of bits.
>


Graph algorithms tend to "mark" each node as it is traversed.  This is well
and good, but finding a good starting point can be the hardest part.

For other purposes, getting the neighborhood around a node is more useful
that forcing the graph into a serialization or tree.  It just depends on
what you want to do.

Cheers,

Tom P



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.