Robot Task Planning Based on Large Language Model Representing Knowledge with Directed Graph Structures