Adjacency List <<<<

suppose maine map use krke adj list bnayi of the form map<int,list> mp;
aur use baad edges add krdi suppose 1,2
so my question is tha ki mai yeh is first pair ko access krna chahta hu to make the src as 1 so mai kaise kr skta hu?

https://ide.codingblocks.com/s/218544 as check in line 35

@akb.tech17 Let me check

Take the beginning of the map and take the first of it

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.