Hey, >From my cell phone.
Add >> -1 after the traversals so it iterated and fills map. Gremlin REPL automagically iterates it. Hope that is clear, Marko. On Nov 7, 2011 1:31 AM, "Kevin Versfeld" <kevin.versf...@gmail.com> wrote: hi again I suspect I'm missing something small, but when I run the following in the webadmin console, I don't get any output....? m = [:]; g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true}.cap.next().sort{a, b -> a... (m is empty too...) Thanks for the info on cap, by the way: its awesome. :) -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3486381.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