algorithms

algorithms.dfs

dfs(options: DFSTraversalOptions): TraversalResult

Traverse 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.

optionsDFSTraversalOptionsDFSTraversalOptions including the start node id and an optional visitor callback / max-depth limit.

Returns: TraversalResult