Approximations and inference of dynamics on networks