powered by
v
descendants(x, v)ancestors(x, v)children(x, v)parents(x, v)neighbours(x, v)spouses(x, v)adjacentNodes(x, v)markovBlanket(x, v)
ancestors(x, v)
children(x, v)
parents(x, v)
neighbours(x, v)
spouses(x, v)
adjacentNodes(x, v)
markovBlanket(x, v)
descendants(x,v) retrieves variables that are are reachable from v via a directed path.
descendants(x,v)
ancestors(x,v) retrieves variables from which v is reachable via a directed path.
ancestors(x,v)
g <- dagitty("graph{ a <-> x -> b ; c -- x <- d }") descendants(g,"x") parents(g,"x") spouses(g,"x")
Run the code above in your browser using DataLab