Retrieve the names of all variables in a given graph that are in the specified
ancestral relationship to the input variable `v`

.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ```
descendants(x, v)
ancestors(x, v)
children(x, v)
parents(x, v)
neighbours(x, v)
spouses(x, v)
adjacentNodes(x, v)
markovBlanket(x, v)
``` |

`x` |
the input graph, of any type. |

`v` |
name(s) of variable(s).
By convention, |

1 2 3 4 | ```
g <- dagitty("graph{ a <-> x -> b ; c -- x <- d }")
descendants(g,"x")
parents(g,"x")
spouses(g,"x")
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.