hi again
I've played around a bit more, and this is the query that currently works
best for me... would anyone mind "reviewing" it for me please? Feels a
little like I'm getting the right answer, but the wrong way....
gremlin> m = [:];
gremlin> g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true}
gremlin> m.sort{a -> a.value}._()

And, that sort tripped me up a few times.... :)

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3486996.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to