/tree-traversal-example

Simple example of three ways to traverse a tree/graph with infinite nesting

Primary LanguageGoApache License 2.0Apache-2.0

tree traversal example

A simple tree traversal example.

Usage

-f, --filepath string     json file path
-g, --generateNodes int   generate N nodes and write to a given filepath
-p, --parallel            enable parallel method. uses waitgroup in each method