Learn R Programming

caugi (version 1.0.0)

as_igraph: Convert a caugi to an igraph object

Description

Convert a caugi to an igraph object

Usage

as_igraph(x, ...)

Value

An igraph object representing the same graph structure.

Arguments

x

A caugi object.

...

Additional arguments passed to igraph::graph_from_data_frame().

See Also

Other conversions: as_adjacency(), as_bnlearn(), as_caugi(), as_dagitty()

Examples

Run this code
cg <- caugi(
  A %-->% B,
  class = "DAG"
)
ig <- as_igraph(cg)

Run the code above in your browser using DataLab