gremlin> g = TinkerGraph.open().traversal()==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]gremlin> g.addV().property(id, 1).......1> addV().property(id, 2).......2> addV().property(id, 3).......3> addV().property(id, 4).......4> addV().property(id, 5).......5> addE('link').from(V(1)).to(V(2)).......6> addE('link').from(V(1)).to(V(3)).......7> addE('link').from(V(2)).to(V(4)).......8> addE('link').from(V(2)).to(V(5)).......9> addE('link').from(V(3)).to(V(5))......10> iterate()gremlin> g.V().not(inE()).emit().repeat(out().dedup())==>v[1]==>v[2]==>v[3]==>v[4]==>v[5]
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d1666330-323d-4043-8eeb-6395e15d2ea8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
g = TinkerGraph.open().traversal()g.addV().property(id, 1).addV().property(id, 2).addV().property(id, 3).addV().property(id, 4).addV().property(id, 5).addE('link').from(V(1)).to(V(2)).addE('link').from(V(1)).to(V(3)).addE('link').from(V(2)).to(V(4)).addE('link').from(V(2)).to(V(5)).addE('link').from(V(3)).to(V(5)).addE('link').from(V(5)).to(V(4)).iterate()g.V().not(inE()).emit().repeat(out()).reverse().unique().reverse()
g.V().not(inE()).emit().repeat(out()).store('a').by(project('v','i').by().by(select('a').count(local))).cap('a').unfold().order().by(select('i'), decr).barrier().dedup().by(select('v')).order().by(select('i')).select('v')
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/311d0c6f-14fd-42a4-bedc-096a3341341b%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.