Atc make dfs/bfs and getChildren optional (Should not affect gh-book)

Folders do not use TocPointerNode so they do not have a tree structure.