sestoft / C5

C5 generic collection library for C#/.NET
http://www.itu.dk/research/c5/
MIT License
1.03k stars 180 forks source link

Traversal algorithm should be part of this kind of library #131

Open schittli opened 1 year ago

schittli commented 1 year ago

Hello

Thanks a lot for sharing your great work!

Description

The Goals of the C5 library are defined like this.

The overall goal is for C5 to be a generic collection library for the C# programming language and the Common Language Infrastructure (CLI) whose functionality, efficiency and quality meets or exeeds what is available for similar contemporary programming platforms.

Therefore, I am very surprised that your TreeTraversal example: C5.UserGuideExamples/TreeTraversal.cs has to write a lot of code just to create and traverse a tree structure.

Because traversal algorithms are one of the most important use cases for data structures, it would be great if this subject could be enhanced in C5. I'm pretty sure the C5 data structures are exceptional, but without cool features / functions, the library feels like the vision was lost just before the finish line.

Thanks a lot, kind regards, Thomas

Solution

As an idea, please see this example: https://github.com/Unskilledcrab/Hierarchy#hierarchy-example