Accurately Solving Rod Dynamics with Graph Learning