Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.
Let's have some code. This is lifted more or less directly from pacgraph. The map is stored as a dictionary of string tokens, instead of a tree of references. The technique works the same for both. The 'master todo deque` is called to_crawl. This function starts at a specified node and returns all of it's children. It operates depth first.