Energy Approach from $\varepsilon$-Graph to Continuum Diffusion Model with Connectivity Functional