Exploring MoreLINQ Part 25 - Traverse

added by DotNetKicks
10/3/2018 8:09:20 AM

1 Kicks, 1356 Views

So we're finally at the end of this exploring MoreLINQ series, and today we're looking at TraverseBreadthFirst and TraverseDepthFirst. These are well-known algorithms for traversing a nested structure in different ways. You simply provide the starting object, and then a function which returns the "children" of that object.