Skip to contents

Get edges of a caugi_graph.

Usage

edges(cg)

E(cg)

Arguments

cg

A caugi_graph object.

Examples

cg <- caugi_graph(
  A %-->% B,
  B %-->% C,
  D,
  class = "DAG"
)
edges(cg) # returns the tibble with columns from, edge, to
#> # A tibble: 2 × 3
#>   from  edge  to   
#>   <chr> <chr> <chr>
#> 1 A     -->   B    
#> 2 B     -->   C