lib.notebook.showJunctionTree
- pyagrum.lib.notebook.showJunctionTree(bn, withNames=True, size=None)
Show a junction tree of a Bayesian network
- Parameters:
bn (
pyagrum.BayesNet) – the modelwithNames (
bool) – names or id in the graph (names can created very large nodes)size (
float|str) – size (for graphviz) of the rendered graph
- Return type:
None
Example
import pyagrum as gum
import pyagrum.lib.notebook as gnb
bn = gum.fastBN("A->B->C")
gnb.showJunctionTree(bn)