Numerical methods for solving PDEs on graphs