Graph BFS algorithm

error

@khemchandrs corrected your code


i hope its clear if yes dont forget to mark it as resolved :smiley:

one doubts assume this is data type “map<int,vector<int,int> mp;” i found out first occurence i.e auto = mp.begin() now how can i find second data of vector in this mp

it=mp.begin() , auto var=(it->second).front().second;
thats how you access @khemchandrs

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

@khemchandrs
It looks like you have re opened the doubt. Do you have any doubt that you want to ask?