View source: R/find_path.R View source: R/extendr-wrappers.R View source: R/extendr-wrappers.R
find_all_paths | R Documentation |
Find all the paths between two nodes in a graph.
Not all graphs support this function. Currently only
DirectedAcyclicGraph
supports this.
find_all_paths(graph, from, to)
graph |
A graph object |
from |
The starting node of the path |
to |
The ending node of the path |
A list of character vectors
Other analyze graphs:
find_path()
,
find_path_one_to_many()
,
get_all_leaves()
,
get_all_roots()
,
get_leaves_under()
,
get_roots_over()
,
least_common_parents()
graph <- graph_builder() |>
add_path(c("A", "B", "C")) |>
add_path(c("A", "Z", "C")) |>
add_path(c("A", "B", "A")) |>
build_directed()
find_all_paths(graph, "A", "C")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.