Path DFS Depth first search algorithm implementation that returns a path to a target node in a graph.