Partial difference equations on graphs for Mathematical Morphology operators over images and manifolds