iv class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span>  <span class="co"># Use formula notation to create DAGs:</span></span></span>
<span class="r-in"><span>  <span class="fu"><a href="https://rdrr.io/r/graphics/plot.default.html" class="external-link">plot</a></span><span class="op">(</span><span class="fu">DAG</span><span class="op">(</span><span class="va">A</span><span class="op">~</span><span class="va">B</span>, <span class="va">B</span><span class="op">~</span><span class="v