Graph Neural Network Potential for Magnetic Materials