Search Edges by depth

Hi

  • Question

I want to find edges by depth,but i could not get what i want

  • Graph
    graph

  • AIM

now ,I want to search the path from the node called 文献 to the node called 专家 by depah,the sql is :

  • SQL
MATCH {class: Concept, as: person, where: (name = '文献' and kngraphId = 'GR0000000000828')}.(bothE().bothV()){as:edges,where:(name = '专家' and kngraphId = 'GR0000000000828'),while: ($depth <= 4)} RETURN distinct $pathElements
  • Result

the result of the sql is :

but what i want is like this:
graph1

i just want the edges and vertex signed, I need help,somebody help

Thanks

52HZ