View source: R/get_roots.R View source: R/extendr-wrappers.R View source: R/extendr-wrappers.R
get_roots_over | R Documentation |
Retrieves the nodes in a graph that have no parents over a certain node or group of nodes
get_roots_over(graph, nodes)
graph |
A graph object |
nodes |
A character vector of nodes to find roots for |
A character vector of nodes
Other analyze graphs:
find_all_paths()
,
find_path()
,
find_path_one_to_many()
,
get_all_leaves()
,
get_all_roots()
,
get_leaves_under()
,
least_common_parents()
graph <- graph_builder() |>
add_path(c("A", "B", "C")) |>
add_path(c("A", "D", "C")) |>
add_path(c("Z", "B", "C")) |>
build_directed()
get_roots_over(graph, "D")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.