Discrete harmonic function (source code)

= Discrete harmonic function
{wiki}

A function on the vertices of a locally finite graph is discrete harmonic when its value at every vertex is the average of its values at the neighbouring vertices.