This is a Mathematica notebook created to solve the pair approximation for 2x2 symmetric games on regular networks. The pair approximation is a system of differential equations explained in detail in
section 2.4 of the free online book
Agent-based Evolutionary Game Dynamics.