Is there a difference between select('foo') and back('foo')? I see that they have different implementations, but conceptually, I think of them as equivalent.
--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/91efebeb-5d1a-4a3c-92fc-eaed328a4f9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d8cd8998-33ca-481a-a3b7-d44bd6d02e77%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/9926209D-75D9-40F3-BA83-87DBDBB2D5B6%40gmail.com.
gremlin> g.V(1).out().as("x").out().as("x").select("x")==>v[5]==>v[3]gremlin> g.V(1).out().as("x").out().as("x").back("x")==>[v[4], v[5]]==>[v[4], v[3]]
gremlin> g.V(1).repeat(out().as("x")).times(2).select("x")==>[v[4], v[5]]==>[v[4], v[3]]gremlin> g.V(1).repeat(out().as("x")).times(2).back("x")==>[v[4], v[5]]==>[v[4], v[3]]
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/3035B6BC-FDBC-46A9-B876-760BDBD979A0%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seVZ%2B-bgwddnF0Sguxy-Cba5ep9CCbjvuFmivvv3ud7vbg%40mail.gmail.com.
Huh, we should make single label select("x") behave as back("x") when there are two as its not "single-label" (we just don't have the logic in there right now).@dkuppitz: Do you want to make a ticket and/or make it so that select() and back() are "the same" so we can get rid of back()?
Thanks,
On Mar 25, 2015, at 7:48 PM, Daniel Kuppitz <m...@gremlin.guru> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seVZ%2B-bgwddnF0Sguxy-Cba5ep9CCbjvuFmivvv3ud7vbg%40mail.gmail.com.