Shortest Path in Unweighted Graph
Use BFS starting from the source. BFS explores vertices in increasing order of the number of edges from the source, so the first time a vertex is discovered its distance is the shortest number of edges from the source. A parent array can reconstruct the actual path.
Algorithm: BFS.
Shortest distance means minimum number of edges.
Time: O(V+E) with adjacency lists.
Space: O(V).
Parent pointers allow path reconstruction.