Let GGG be a graph represented using adjacency matrix with nnn vertices and mmm edges. What is the tightest upper bound on the running time of depth-first search (DFS) on this graph?