I was learning graph in C++ and this code came up for iterating through a graph:
for(auto it: adj[node])
What does this do?
Here adj is an adjacency list.
I am not being able to understand the concept. Can anyone explain with an example?
New contributor
Vaisakh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.