Graph-based Alignment and Uniformity for Recommendation