CliqueGraph.toDotWithNames

CliqueGraph.toDotWithNames(bn)
Parameters:
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

CliqueGraph