GRIP: In-Parameter Graph Reasoning through Fine-Tuning Large Language Models