Diffusion Processes on Graphs and the Averaging Principle