Kindly I want to determine the neighborhood for each vertex in my graph but it is undirected, and the function used in the website, not working in my case, any suggestions?

Thanks,