Skip to contents

Convert to bnlearn object.

Usage

toBNLearn(x)

Arguments

x

An object that represents a DAG.

Value

bn_obj A bn object.

Examples

adj <- UniformlySampleDAG(c('A', 'B', 'C'))
toBNLearn(adj)
#> 
#>   Random/Generated Bayesian network
#> 
#>   model:
#>    [B][A|B][C|A] 
#>   nodes:                                 3 
#>   arcs:                                  2 
#>     undirected arcs:                     0 
#>     directed arcs:                       2 
#>   average markov blanket size:           1.33 
#>   average neighbourhood size:            1.33 
#>   average branching factor:              0.67 
#> 
#>   generation algorithm:                  Empty 
#>