c# hierarchy collection library? - anyone know of one (e.g. GetDirectChildren, GetAllChildren, GetPa
- by Greg
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