--
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/7cd0d7ab-963a-4a78-be32-04d2a4f5840e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g
.V()
.has(NUMBER, 204984)
.emit()
.repeat(__.bothE().dedup().store(EDGES).otherV())
.times(2)
.dedup()
.aggregate(VERTICES).by(T.id)
.bothE()
.where(P.without(EDGES))
.as(EDGE)
.otherV()
.where(__.hasId(P.within(VERTICES)))
.select(EDGE)
.store(EDGES)
.cap(VERTICES, EDGES)
.next();
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/17a17f00-7308-493e-bd40-41fd643f2986%40googlegroups.com.
Actually I see 7077 edges without by() modulator.
Best regards,
Evgeniy Ignatiev.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seX2cUUKBJR1q5bfgyuXo0ZuOppi7HVeNU01VkutxsSJcQ%40mail.gmail.com.
I pushed a commit to the https://github.com/YevIgn/tinkerpop-subgraph-pagerank which adds code from your gist and also printing results for the case when ids of vertices and edges are extracted.
Attached console log of what I get from running it - from the first two runs I get 7077 edges, from the third one (ids loaded only) - 6881.
Do I miss something that gives these discrepancy?
Best regards,
Evgeniy Ignatiev.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seX2cUUKBJR1q5bfgyuXo0ZuOppi7HVeNU01VkutxsSJcQ%40mail.gmail.com.
diff --git a/src/main/java/test/tinkerpop/subgraph/pagerank/Main.java b/src/main/java/test/tinkerpop/subgraph/pagerank/Main.javaindex 4f25d22..2f56a84 100644--- a/src/main/java/test/tinkerpop/subgraph/pagerank/Main.java+++ b/src/main/java/test/tinkerpop/subgraph/pagerank/Main.java@@ -150,10 +150,10 @@ public class Main {.dedup().aggregate(VERTICES).by(T.id).bothE()- .where(P.without(EDGES))+ .where(P.without(EDGES)).by(T.id).by().as(EDGE).otherV()- .where(__.hasId(P.within(VERTICES)))+ .where(P.within(VERTICES)).by(T.id).by().select(EDGE).store(EDGES).by(T.id).cap(VERTICES, EDGES)
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seX2cUUKBJR1q5bfgyuXo0ZuOppi7HVeNU01VkutxsSJcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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/f1dc9421-d870-282c-42fd-80b18a81bcb3%40gmail.com.
Thank you! Now I see the same results for all queries. Also could you, please, explain why the results are different while using hasId? I have not found any information on this point in Where step documentation.
Best regards,
Evgeniy Ignatiev.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seURNo37d0qRNmLwFzJop5yNQ7cbvxsP7-OcxbXtbQcmSw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seURNo37d0qRNmLwFzJop5yNQ7cbvxsP7-OcxbXtbQcmSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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/d04e4f3c-ba89-2457-bc4c-edab90c1561c%40gmail.com.