find_all_paths | R Documentation |
Given a set of response functions, find all directed paths from from to to
find_all_paths(respvars, from, to)
respvars |
A set of response functions as created by create_response_function |
from |
A character string indicating the start of the path |
to |
A character string indicating the end of the path |
A list with all the paths or a list with NULL if there are none
b <- initialize_graph(igraph::graph_from_literal(X -+ Z, Z -+ Y, X -+ Y, Ur -+ Z, Ur -+ Y))
medmod <- create_response_function(b)
find_all_paths(medmod, "X", "Y")
igraph::all_simple_paths(b, "X", "Y", mode = "out")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.