Optional
A boolean indicating whether the algorithm should only go along edges from source to target (default false).
The root nodes (selector or collection) to start the search from.
A handler function that is called when a node is visited in the search.
A boolean indicating whether the algorithm should only go along edges from source to target (default false).