Uniformly Reweighted Belief Propagation: A Factor Graph Approach