Implementation doubt

isme neighbours ki arraylist nhi li hai … ham ek node se saare neighbours ko kaise access krege?? :\

bs pair se toh ek node ka 1 hi neighbour milega …

@Muskan-Gupta-598128740703036
This is an adjacency list representation of a graph
Node k saare neighbours ko list mein uski position pe push krte hain
So you can access all neighbours this way
See this for better undestanding https://www.geeksforgeeks.org/graph-and-its-representations/

this is my code in java , sir i am not able to make a static count array , so that i can fill it recursively … so how can i do this???

@Muskan-Gupta-598128740703036
Send it in the code as a function parameter

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.