Traverse.Bfs
Breadth-first search
The function is applied each time a node is reached for the first time. Not tail-recursive.
Idem, but limited to a single root vertex.
The function is applied each time a node is reached for the first time. Not tail-recursive.
Idem, but limited to a single root vertex.
See module Dfs