Review the pseudo-code while observing the different running times needed to implement each step when the graph is represented with an adjacency matrix.