| adjacent_vertices | R Documentation |
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"))
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. |
A list of vertex sequences.
Other structural queries:
[.igraph(),
[[.igraph(),
are_adjacent(),
ends(),
get_edge_ids(),
gorder(),
gsize(),
head_of(),
incident(),
incident_edges(),
is_directed(),
neighbors(),
tail_of()
g <- make_graph("Zachary")
adjacent_vertices(g, c(1, 34))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.