Compute vertex neighborhoods or the full adjacency list for a mesh using the Rvcg or igraph library.
Useful links