BayesNet.toDot
- BayesNet.toDot(*args)
- Parameters:
options (
pyagrum.DotOptions, optional) – what is given to the drawing beyond the look ofpyagrum.config(size, label, colors of some nodes, width of some arcs…).- Returns:
a friendly display of the graph in DOT format
- Return type:
str
Example
import pyagrum as gum
bn = gum.fastBN("A->B")
dot = bn.toDot() # the graph in the dot language
dot.splitlines()[0]
# 'digraph "anonymousBN" {'
'"A" -> "B"' in dot
# True
Class