Feynman Diagrams, Luttinger-Ward Formalism, and Gibbs Measure