When to use Graphs in RAG: A Comprehensive Analysis for Graph Retrieval-Augmented Generation