I have a query to Neo4j through Py2neo v3 using ogm:
output = graph.run("MATCH (m:Column { name: 'code' }),(n:Column { name: 'locale_language_cd' }), p = shortestPath((m)-[rels:PART_OF*]-(n)) RETURN p").evaluate()
print(output)
This correctly does what I want it to, but the nodes are not legible
(f0b4322)-[:PART_OF]->(f86202d)<-[:PART_OF]-(a16fb7b)-[:PART_OF]->(b3562af)<-[:PART_OF]-(a7bfe43)
If I run the code again:
(b539883)-[:PART_OF]->(c83d89b)<-[:PART_OF]-(f2adac1)-[:PART_OF]->(fd469a6)<-[:PART_OF]-(e373bf4)
Here is a link to what the data looks like in Neo4j: Neo4j output with same search parameters
Every time I run the code the outputs are different, I would like the digits to be replaced with the GraphObject names (their primary key).