--
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/b5e5af9a-eb8d-41a6-9b3d-47c5af0745a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
DanielHi,Cheers,gremlin> g = TinkerFactory.createModern().traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.V(1,2).bothE().otherV().hasId(1,2).path()
==>[v[1],e[7][1-knows->2],v[2]]
==>[v[2],e[7][1-knows->2],v[1]]
gremlin> g.V(1,2).bothE().otherV().hasId(1,2).path().dedup().by(union(limit(local, 1), tail(local, 1)).order().by(id).limit(1))
==>[v[1],e[7][1-knows->2],v[2]]
On Mon, Nov 21, 2016 at 2:01 PM, <pengzhi...@gmail.com> wrote:
Hi,I have a set of vertices,i need to find any tow vertices path by max depth, and also ignore the direction, if path: A->B->C->D vs D->C->B->A, I want to dedup, it is mean only return one path of them.when i use gremlin type like this: g.V(1,2,3,4).repeat(__.bothE().otherV().simplePath()).times(3).hasId(1,2,3,4).path(). it return many paths only the direction reversed. how can i dedup the path ignore their direction?
--
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 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/aae574ce-9a72-4a83-a5a2-ada15ef982a3%40googlegroups.com.
Hi,
gremlin> g = TinkerFactory.createModern().traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.V(1,2).bothE().otherV().hasId(1,2).path()
==>[v[1],e[7][1-knows->2],v[2]]
==>[v[2],e[7][1-knows->2],v[1]]
gremlin> g.V(1,2).bothE().otherV().hasId(1,2).path().dedup().by(union(limit(local, 1), tail(local, 1)).order().by(id).limit(1))
==>[v[1],e[7][1-knows->2],v[2]]
Cheers,Daniel
On Mon, Nov 21, 2016 at 2:01 PM, <pengzhi...@gmail.com> wrote:
Hi,I have a set of vertices,i need to find any tow vertices path by max depth, and also ignore the direction, if path: A->B->C->D vs D->C->B->A, I want to dedup, it is mean only return one path of them.when i use gremlin type like this: g.V(1,2,3,4).repeat(__.bothE().otherV().simplePath()).times(3).hasId(1,2,3,4).path(). it return many paths only the direction reversed. how can i dedup the path ignore their direction?
--
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 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/30a85591-9385-4f50-938e-cb2ec13243dd%40googlegroups.com.
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/14a3b553-cf5b-4ef3-87ee-66dff694705e%40googlegroups.com.
Robert Dale
--
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/084cd93b-1a84-4ce5-90a5-d62c0a437919%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
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/a51500fa-6ea6-4269-b03a-f0cd3c361608%40googlegroups.com.
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/7af45893-c1d2-4903-b7bc-8462cfca33bf%40googlegroups.com.
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/b0cea021-36b4-4436-b05b-251494df17c3%40googlegroups.com.
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/5062a318-7dce-49a2-85cd-2a2afa4a652c%40googlegroups.com.
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/e6a0d4a4-f919-45ca-8149-07067c5fa801%40googlegroups.com.
Well, apparently you don't want to read the Javadocs....