On the Roles of LLMs in Planning: Embedding LLMs into Planning Graphs