Let G be a graph with n vertices and m edges. What is the tightest upper bound on the
running time of Depth First Search on G, when G is represented as an adjacency matrix?
- A\(\Theta (n)\)
- B\(\Theta (n+m)\)
- C\(\Theta (n^{2})\)
- D\(\Theta (m^{2})\)