My graph structure is as follows

The data is as follows;
The edges are created as below;
CREATE EDGE EDG FROM #5671:0 TO #5671:1;
CREATE EDGE EDG FROM #5671:1 TO #5671:2;
When I execute the below query
MATCH(a:A {name:'one'})-[:EDG]->(aa:A)-[:EDG]->(aaa:A) return aaa
It does not return '#5671:2', it returns '#5671:1'
Returning 'a' and 'aa' gives correct values but 'aaa' gives incorrect value. The traversal hop is stopping at '#5671:1'
The traversal works in the old Cypher engine and gives correct result.
My graph structure is as follows

The data is as follows;
The edges are created as below;
CREATE EDGE EDG FROM #5671:0 TO #5671:1;
CREATE EDGE EDG FROM #5671:1 TO #5671:2;
When I execute the below query
MATCH(a:A {name:'one'})-[:EDG]->(aa:A)-[:EDG]->(aaa:A) return aaa
It does not return '#5671:2', it returns '#5671:1'
Returning 'a' and 'aa' gives correct values but 'aaa' gives incorrect value. The traversal hop is stopping at '#5671:1'
The traversal works in the old Cypher engine and gives correct result.