Quantum particles and Gaussian model on graphs