dagitty2graph: Graph conversion from dagitty to igraph

View source: R/semUtils.R

dagitty2graphR Documentation

Graph conversion from dagitty to igraph

Description

Convert a dagitty object to a igraph object.

Usage

dagitty2graph(dagi, verbose = FALSE, ...)

Arguments

dagi

A graph as a dagitty object ("dag" or "pdag").

verbose

A logical value. If TRUE, the output graph is shown. This argument is FALSE by default.

...

Currently ignored.

Value

An igraph object.

Author(s)

Mario Grassi mario.grassi@unipv.it

Examples


# Conversion from igraph to dagitty  (and viceversa)
dagi <- graph2dagitty(sachs$graph, verbose = TRUE)
graph <- dagitty2graph(dagi, verbose = TRUE)


SEMgraph documentation built on Sept. 11, 2024, 8:36 p.m.