Why does Dgraph shortest path return more hops than Neo4j for the same data and how to get Neo4j-like paths in Dgraph?

Update on Schema and Query Execution

I have updated the person1 data as mentioned in the previous reply.

Regarding the schema, I have reviewed the configuration and can confirm that everything is set as you had assumed, except for the following changes which I have now applied:

<nt>: string @index(exact) .
<title>: string @index(exact) .

Previously, these fields were indexed using @index(term). I have now updated them to use @index(exact) as suggested.

After making the changes, I re-executed the query, but the results remain the same.