On the optimality of solutions of the max-product belief-propagation algorithm in arbitrary graphs | Synapse