View source: R/abstract-graph.R
neighborhood | R Documentation |
That is, find all nodes connected to node
by an outgoing edge.
This function is memorized to avoid making repeated API queries.
neighborhood(graph, node)
graph |
A graph object. |
node |
The name of a single node in |
A character vector of all nodes in graph
connected such that
there is an outgoing edge for node
to those nodes. This should
never be empty, as neighborhood()
should not be called on nodes
that fail check()
, and check()
enforces that nodes have out-degree
of at least one. It is critical node names are duplicated in the
output recommend calling unique()
if there is any potential for
for that to occur.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.