This projects produces a
a
Library with Generic methods to travere k-nary trees (k >=1) in any order required.
The project in this repository contains a demo console project to demo its usage.
See TreeLib.BreadthFirst.Traverse.LevelOrder implementation for:
- trees with 1 root (expects <T> root as parameter)
- trees with multiple root node (expects IEnumerable<T> root as parameter)
See TreeLib.BreadthFirst.Traverse.PreOrder implementation for:
- trees with 1 root (expects <T> root as parameter)
- trees with multiple root node (expects IEnumerable<T> root as parameter)
See TreeLib.BreadthFirst.Traverse.Postorder implementation for:
- trees with 1 root (expects <T> root as parameter)
- trees with multiple root node (expects IEnumerable<T> root as parameter)