// Initialize clique beliefs as well as sepset beliefs
self.clique_beliefs = {clique: self.junction_tree.get_factors(clique)
for clique in self.junction_tree.nodes()}
self.sepset_beliefs = {frozenset(x[0]).intersection(frozenset(x[1])): None
for x in self.junction_tree.edges()}
def _update_beliefs(sending_clique, recieving_clique):
After Change
// Initialize clique beliefs as well as sepset beliefs
self.clique_beliefs = {clique: self.junction_tree.get_factors(clique)
for clique in self.junction_tree.nodes()}
self.sepset_beliefs = {frozenset(edge): None for edge in self.junction_tree.edges()}
def _update_beliefs(sending_clique, recieving_clique):