Path determination using diffusion