//every vertex visited once → O(V) and every edge checked once (technically twice in adjacency list of undirected graph) → O(E) ...