Explores all vertices at the present depth before moving to vertices at the next depth level.
Queue + visited set — up to V nodes stored