Finite-difference schemes for parabolic problems on graphs