View source: R/find_path.R View source: R/extendr-wrappers.R View source: R/extendr-wrappers.R
find_path_one_to_many | R Documentation |
Find a valid path from one node to many
find_path_one_to_many(graph, from, to)
graph |
A graph object |
from |
The starting node of the path |
to |
A character vector of nodes |
A list of paths
Other analyze graphs:
find_all_paths()
,
find_path()
,
get_all_leaves()
,
get_all_roots()
,
get_leaves_under()
,
get_roots_over()
,
least_common_parents()
edges <- data.frame(
parent = c("A", "A", "B", "Z"),
child = c("B", "Z", "Z", "F")
)
graph <- graph_builder() |>
populate_edges(edges, parent, child) |>
build_acyclic()
find_path_one_to_many(graph, "A", edges$child)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.