bn.to.igraph: Bayesian Network to iGraph Model

View source: R/bn.to.igraph.R

bn.to.igraphR Documentation

Bayesian Network to iGraph Model

Description

Converts Bayesian network structure based on package "bnlearn" and "bnviewer" to model based on package "igraph".

Usage

bn.to.igraph(bayesian.network)

Arguments

bayesian.network

Bayesian Network structure.

References

See online documentation https://robsonfernandes.net/bnviewer/

Examples


library(bnlearn)
library(bnviewer)

bn.alarm = hc(alarm)

g = bn.to.igraph(bn.alarm)


bnviewer documentation built on Sept. 14, 2026, 9:09 a.m.