Traverse Neo4J nodes ordered by property in Java

Is it possible to move nodes ordered by a property defined by relationships in the Java API?

Source node *--- 4 ---> * Node 1
            |
            +--- 3 ---> * Node 2
            |
            +--- 2 ---> * Node 3
            |
            '--- 1 ---> * Node 4

Where * are nodes, and the numbers between - are relationship properties. Thus, the above will give nodes 4, 3, 2, and 1.

+3
source share
2 answers

Then you will need to get all these relationships and sort them. If you use this bypass, then this behavior can be encoded in the RelationshipExpander application.

+2
source

All Articles