For problem 2b, should the top-level DFS start at A?
This was my intention which is why I said to visit the vertices in the top-level DFS method in alphabetical order. I’ve heard that some students thought that the intention was that the top-level DFS starts at S, and then continues in alphabetical order after that. If you made this assumption, that is fine. Please just make a note of this on your solution.