synthcity.plugins.core.models.mbi.junction_tree module

class JunctionTree(domain, cliques, elimination_order=None)

Bases: object

A JunctionTree is a transformation of a GraphicalModel into a tree structure. It is used to find the maximal cliques in the graphical model, and for specifying the message passing order for belief propagation. The JunctionTree is characterized by an elimination_order, which is chosen greedily by default, but may be passed in if desired.

maximal_cliques()

return the list of maximal cliques in the model

mp_order()

return a valid message passing order

neighbors()
separator_axes()