The time complexity in the explanation is O(V^2 + E), why is the E there? I don’t see anywhere in the code an iteration on the edges??
The time complexity in the explanation is O(V^2 + E), why is the E there? I don’t see anywhere in the code an iteration on the edges??