def run_prob2a_tree(single_node_cliques=True): (ubg, data) = create_prob2a_tree(single_node_cliques) ipf = IPF(ubg, data) for k in range(5): ipf.iterate() return ipf
def run_simple_graph(): (ubg, data) = create_simple_graph() ipf = IPF(ubg, data) ipf.iterate() ipf.iterate() return ipf