View source: R/neighbor_graph.R
neighbors.neighbor_graph | R Documentation |
Retrieve the neighbors of a specific node or all nodes in a neighbor_graph object.
## S3 method for class 'neighbor_graph'
neighbors(x, i)
x |
A neighbor_graph object. |
i |
An integer specifying the index of the node for which neighbors should be retrieved. |
A list of neighbors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.