as.graph.parental: Convert a 'parental' object to a 'graphNEL' object.

Description Usage Arguments Details Value Examples

View source: R/convert.R

Description

graphNEL objects are from bioconductor package 'graph'

Usage

1
2
  ## S3 method for class 'parental'
 as.graph(x, ...)

Arguments

x

An object of class 'parental'

...

unused

Details

Note that graphNEL's edge list are *children* lists.

Value

An object of class 'graphNEL'.

Examples

1
2
3
4
5
if (require(graph)){
x <- bn(integer(0), 1, 2)
y <- as.graph(x)
edges(y)
}

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.