| get_non_nbrs | R Documentation | 
Get the set of all nodes not neighboring a single graph node.
get_non_nbrs(graph, node)
graph | 
 A graph object of class   | 
node | 
 A single-length vector containing a node ID value.  | 
A vector of node ID values.
# Create a simple, directed graph with 5
# nodes and 4 edges
graph <-
  create_graph() %>%
  add_path(n = 5)
# Find all non-neighbors of node `2`
graph %>% get_non_nbrs(node = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.