r - Given a vertex v1, how can I get the vertex v2 whose edge (v1,v2 ...

r - Given a vertex v1, how can I get the vertex v2 whose edge (v1,v2 ...