Toward a Unified Geometry Understanding: Riemannian Diffusion Framework for Graph Generation and Prediction