py2neo icon indicating copy to clipboard operation
py2neo copied to clipboard

how to get relation name

Open LLLLLLoki opened this issue 3 years ago • 0 comments

cypher = "match p=shortestPath((n:Entity{name:"aaa"})-[*]-(m:Entity{name:"bbb"})) return p" g = Graph(...,...) PATH = g.run(cypher).to_series()

How do I get the name attribute of the relationship in the PATH?

LLLLLLoki avatar Jul 05 '22 09:07 LLLLLLoki