Graph Search Problem: Modify the Goal
- Describe a variant of the general Graph Search problem that finds a path between a source and every reachable vertex.
Recall:
General Graph Search Problem
Input: Graph , and a starting vertex .
Goal: Identify the vertices in reachable from in .
We slightly modify the objective as follows:
Goal: Identify a path from to each (reachable) vertex in .
We will see how we can modify the solution to the General Graph Search Problem to solve the modified version of it.