addEdge function doubt in Graph

addEdge function unable to understand.
Please clear this doubt with example.

@divesh2000
array of list hai
so maanlo ye connections hai
1 2
2 3
1 3
so
it will look like this
1 -> 2,3
2-> 1,3
3 -> 1,2
basically har vertex ke neighbours daal rahe hai uss vertex ki list mein

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.