c# hierarchy collection library? - anyone know of one (e.g. GetDirectChildren, GetAllChildren, GetPa
Posted
by Greg
on Stack Overflow
See other posts from Stack Overflow
or by Greg
Published on 2010-04-26T02:36:29Z
Indexed on
2010/04/26
2:43 UTC
Read the original article
Hit count: 266
Hi,
Does anyone know of a solid C# library / approach to manage a hierarchy/web type collection?
This would be a library that would basic consist of the concept of nodes & relationships, for example to model web pages/files linked under a URL, or modeling IT infrastructure. It would have key methods such as:
Node.GetDirectParents()
Node.GetRootParents()
Node.GetDirectChildren()
Node.GetAllChildren()
So it's smarts would include the ability to "walk the tree" of nodes based on the relationships when someone does ask for "give me all the children under this node" for example.
It ideally include a persistence layer, to save/retrieve such data to/from a databases (e.g. with a Nodes and Relationships table).
Thanks
© Stack Overflow or respective owner