as.character.parentslist
returns a string
encoding the associated directed graph and eventually
the context specific independences.
The encoding is similar to the one returned by
modelstring
in package bnlearn
and package deal.
In particular, parents of a variable can be enclosed in:
( )
if a partial (conditional) independence is present.
{ }
if a context specific independence is present.
< >
if no context specific and partial (conditional)
independences are present, but at least a
local independence is detected.
If a parent is not enclosed in parenthesis the dependence is full.
If only_parents = TRUE
, the simple DAG encoding as in bnlearn
is returned.