Adjacent vertices of multiple vertices in a graphSource:
This function is similar to
neighbors(), but it queries
the adjacent vertices for multiple vertices at once.
adjacent_vertices(graph, v, mode = c("out", "in", "all", "total"))
The vertices to query.
Whether to query outgoing (‘out’), incoming (‘in’) edges, or both types (‘all’). This is ignored for undirected graphs.