I am using Neo4j
for graph database, and using Java to extract the path from it.
I have a path as follows:
[(3)--[KNOWS,5]-->(4)--[KNOWS,6]-->(5)--[KNOWS,9]-->(6)--[KNOWS,10]-->(7)--[KNOWS,12]-->(9)]
I want to replace the node ids in the path with their property.
ex. For node id 3 with property "name=ABC"
, output should come like "[(ABC)--[KNOWS,5]....]"
How it can be done?