AlgorithmsDepth-First Search

Depth-First Search

An algorithm for traversing graphs by exploring as far as possible along each branch.