Problem of turning back when traversing with match syntax

#1

Since the SQL syntax can’t support edge property condition when traversing, I tried it using Match syntax, but found that it would traverse back and returned much more unexpected paths of reentry. I demonstrated this problem in the topic below: Problem when traversing the graph with multiple levels
So is anyone encountering the same problem? And how could I solve this problem?