
42 Bayesian Networks: With Examples in R
nodes to another, which is one way of exploring how the latter depends on the
former. For instance, we can use the path function to look for the existence
of such a path between E and C.
> bnlearn::path(dag.bnlearn, from = "E", to = "C")
[1] TRUE
Note the use of the bnlearn:: prefix to uniquely identify the path func-
tion. A function of the same name is provided by the igraph package, and it
might be called by mistake depending on the order in which the two packages
have been loaded. More operations will be considered in subsequent chapters
as the relevant theory is introduced.
2.3 Probabilistic Representation