Optional
A boolean indicating whether the algorithm should only go along edges from source to target (default false).
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).