algorithms.dfs
dfs(options: DFSTraversalOptions): TraversalResultTraverse the graph depth-first from a given start node.
Runs synchronously on the main thread. Not undoable; does not modify the store or emit events.
options | DFSTraversalOptions | DFSTraversalOptions including the start node id
and an optional visitor callback / max-depth limit. |
Returns: TraversalResult