# adjacent_vertices

From igraph v1.2.3
by Gabor Csardi

##### Adjacent vertices of multiple vertices in a graph

This function is similar to `neighbors`

, but it queries
the adjacent vertices for multiple vertices at once.

##### Usage

`adjacent_vertices(graph, v, mode = c("out", "in", "all", "total"))`

##### Arguments

- graph
Input graph.

- v
The vertices to query.

- mode
Whether to query outgoing (‘out’), incoming (‘in’) edges, or both types (‘all’). This is ignored for undirected graphs.

##### Value

A list of vertex sequences.

##### See Also

Other structural queries: `[.igraph`

,
`[[.igraph`

, `are_adjacent`

,
`ends`

, `get.edge.ids`

,
`gorder`

, `gsize`

,
`head_of`

, `incident_edges`

,
`incident`

, `is_directed`

,
`neighbors`

, `tail_of`

##### Examples

```
# NOT RUN {
g <- make_graph("Zachary")
adjacent_vertices(g, c(1, 34))
# }
```

*Documentation reproduced from package igraph, version 1.2.3, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.