# Ancestral Relations

### Description

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

.

### Usage

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)
``` |

### Arguments

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

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

### Examples

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