CliqueGraph.toDotWithNames
- CliqueGraph.toDotWithNames(bn)
- Parameters:
bn (
pyagrum.BayesNet)network (a Bayesian)
- Returns:
a friendly display of the graph in DOT format where ids have been changed according to their correspondance in the BN
- Return type:
str
Example
import pyagrum as gum
bn = gum.fastBN("A->B->C")
jt = gum.JunctionTreeGenerator().junctionTree(bn)
dot = jt.toDotWithNames(bn) # cliques labelled with the names of the variables
'label="A B"' in dot
# True
Class