inst/roxygen-examples/dot-add_edges-example.R

# add a block of forbidden edges using internal helper
data(tpc_example)

kn <- knowledge(tpc_example)

# add forbidden edges between youth_* and child_*
kn <- .add_edges(
  kn,
  "forbidden",
  from = c("youth_x3", "youth_x4"),
  to = c("child_x1", "child_x2")
)

print(kn)

Try the causalDisco package in your browser

Any scripts or data that you put into this service are public.

causalDisco documentation built on April 13, 2026, 5:06 p.m.