get_parents {CausalQueries}R Documentation

Get list of parents of all nodes in a model

Description

Get list of parents of all nodes in a model

Usage

get_parents(model)

Arguments

model

A causal_model. A model object generated by make_model.

Value

A list of parents in a DAG

Examples

model <- make_model('X -> K -> Y')
get_parents(model)

[Package CausalQueries version 0.0.3 Index]