Get edges of a caugi_graph.
edges.RdGet edges of a caugi_graph.
See also
Other queries:
ancestors(),
children(),
descendants(),
edge_types(),
exogenous(),
is_acyclic(),
is_caugi(),
is_cpdag(),
is_dag(),
is_empty_caugi(),
is_pdag(),
markov_blanket(),
neighbors(),
nodes(),
parents(),
same_nodes(),
subgraph()
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