@graphty/algorithms / index / depthFirstSearch
Function: depthFirstSearch() ​
depthFirstSearch(
graph,startNode,options):TraversalResult
Defined in: algorithms/traversal/dfs.ts:26
Perform depth-first search starting from a given node
Parameters ​
graph ​
The input graph to traverse
startNode ​
The node to start the DFS from
options ​
DFSOptions = {}
DFS options (recursive mode, pre/post order, etc.)
Returns ​
Traversal result with visited nodes, order, and tree structure