Skip to contents

Get edges of a caugi.

Usage

edges(cg)

E(cg)

Arguments

cg

A caugi object.

Value

A data.table with columns from, edge, and to.

Examples

cg <- caugi(
  A %-->% B,
  B %-->% C,
  D,
  class = "DAG"
)
edges(cg) # returns the data.table with columns from, edge, to
#>      from   edge     to
#>    <char> <char> <char>
#> 1:      A    -->      B
#> 2:      B    -->      C