how to find all paths between two edges that exclude particular edges

82 views
Skip to first unread message

דניאלה אסף

unread,
Mar 26, 2015, 1:05:32 PM3/26/15
to gremli...@googlegroups.com
I would like to exclude particular  edges from the following query :

g.v(1).as('x').bothE().bothV().simplePath().loop('x') {it.loops <= 10} {it.object.uid == 3}.path {it.map()} {it.label}[0..20]


I did the following :

 g.v(1).as('x').bothE().filter{it.label != "labelName"}.bothV().simplePath().loop('x') {it.loops <= 10} {it.object.uid == 3}.path {it.map()} {it.label}[0..20]


but it last forever . 




Daniel Kuppitz

unread,
Mar 26, 2015, 2:32:33 PM3/26/15
to gremli...@googlegroups.com
Do you have some supernodes in your graph? Does the query run out of memory if you wait long enough? What if you reduce the number of loops?

Cheers,
Daniel


--
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/f0646fa4-0bb2-4e38-a24f-9d047a84febe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

דניאלה אסף

unread,
Mar 27, 2015, 6:42:17 AM3/27/15
to gremli...@googlegroups.com
what that  means "supernodes" ?

I can reduce the number of loops but Is there a better way to exclude edges from the query ?

Daniel Kuppitz

unread,
Mar 27, 2015, 7:37:07 AM3/27/15
to gremli...@googlegroups.com
what that  means "supernodes" ?

Vertices with a massive amount of incident edges.

I can reduce the number of loops but Is there a better way to exclude edges from the query ?

It would be better if you could tell which edge labels to include, then you wouldn't need the filter step:

...bothE("label1","label2",...).bothV()...

Cheers,
Daniel


--
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.

דניאלה אסף

unread,
Mar 28, 2015, 1:00:44 AM3/28/15
to gremli...@googlegroups.com
thanks, but I hava a big amount of different edges 

.bothE("label1","label2",...,label50)
Reply all
Reply to author
Forward
0 new messages