Diagrammatic Expansion for the Ising Model with Arbitrary Spin and Range of Interaction | Synapse