Description Usage Arguments Value Examples
Evaluate the expression in tidygraph::filter(expr)
and
return the indices of the remaining nodes
1 | get_node_index(gr, expr)
|
gr |
tidygraph graph object |
expr |
an expression to evaluate in |
a vector of the indices of the nodes remaining after the filter
1 2 3 4 5 | suppressPackageStartupMessages(library(magrittr))
suppressPackageStartupMessages(library(tidygraph))
tidygraph::create_ring(5) %>%
mutate(name = LETTERS[1:5]) %>%
get_node_index(name != "B")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.