We study free scalar field theory on a graph, which gives rise to a modified version of discrete Green’s function on a graph studied in [8]. We show that this gives rise to a graph invariant, which is closely related to the 2-dimensional Weisfeiler-Lehman algorithm for graph isomorphism testing. We then consider the same theory over the integers, which leads to the consideration of certain quadratic forms over the integers as initiated in [14], associated to the graphs. The quadratic form represented by the combinatorial Laplacian respects a well-behaved wedge sum of graphs, and appears to capture important graph properties reg