UGraph is combined with Belief Propagation module