Is it possible to traverse nodes ordered by a property given by relations in the Java API?
Source node *--- 4 ---> * Node 1
|
+--- 3 ---> * Node 2
|
+--- 2 ---> * Node 3
|
'--- 1 ---> * Node 4
Where *'s are nodes and the numbers between -'s are relation properties. Such that the above would give the nodes 4, 3, 2 and 1.
You would have to get all those relationships and sort them first then. If you're using that in a traversal then such a behaviour can be encoded in a RelationshipExpander.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With