check_parents: Check for paths from from to to

View source: R/graph-utilities.R

check_parentsR Documentation

Check for paths from from to to

Description

Check for paths from from to to

Usage

check_parents(parent_lookup, from, to, prev = NULL)

Arguments

parent_lookup

A list of vectors

from

character

to

character

prev

Should always be null when first called

Value

A list of paths or null if no path is found

Examples

parent_lookup <- list(M = "Am", Y = c("M", "Ay"), A = NULL, Am = "A", Ay = "A")
check_parents(parent_lookup, "A", "Y")

causaloptim documentation built on Oct. 17, 2024, 9:08 a.m.