Skip to contents

Convert a caugi_graph to an igraph object

Usage

as_igraph(x, ...)

Arguments

x

A caugi_graph object.

...

Additional arguments passed to igraph::graph_from_data_frame().

Value

An igraph object representing the same graph structure.

See also

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

Examples

cg <- caugi_graph(
  A %-->% B,
  class = "DAG"
)
ig <- as_igraph(cg)