Get parents of node in a graph. Note that not both nodes and index can be given.
Arguments
- cg
A
caugiobject.- nodes
A vector of node names, a vector of unquoted node names, or an expression combining these with
+andc().- index
A vector of node indexes.
Value
Either a character vector of node names (if a single node is requested) or a list of character vectors (if multiple nodes are requested).
See also
Other queries:
ancestors(),
children(),
descendants(),
edge_types(),
edges(),
exogenous(),
is_acyclic(),
is_caugi(),
is_cpdag(),
is_dag(),
is_empty_caugi(),
is_pdag(),
is_ug(),
markov_blanket(),
neighbors(),
nodes(),
same_nodes(),
subgraph()