Graphically Structured Diffusion Models Math