adjacent_vertices | R Documentation |
A vertex is adjacent is it is either a successor, or a predecessor.
adjacent_vertices(graph)
graph |
The graph. |
A named list of character vectors, the adjacent vertices for each vertex.
Other simple queries:
edges()
,
order()
,
vertices()
G <- graph(list(A = c("B", "C"), B = "C", C = "A"))
adjacent_vertices(G)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.