g.V(startNodeId).repeat(both().simplePath()).emit(loops().is(gte(4)))
--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraphs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/d9d8e0ee-2dd9-4322-ae2f-7226cfa69850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The following query will start at particular vertex, then traverse in both direction - preventing circular paths - and emit every vertex at depth 4+:g.V(startNodeId).repeat(both().simplePath()).emit(loops().is(gte(4)))Cheers,Daniel
On Sat, Dec 3, 2016 at 10:29 PM, Disruptive Solutions <disruptivesolutionsnl@gmail.com> wrote:Oke I have been filling TitanDB with nodes and edges. Now I want to find a related node or instance which is in distance 4+ from the primary node from which I am starting the search.--
In SPARQL I just can use the + sign in the query to look beyond the 1st distance. How can I do this in Gremlin? I am using Java (API) to make Gremlin queries.
Thanks in advance.
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraphs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/d9d8e0ee-2dd9-4322-ae2f-7226cfa69850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Aurelius" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/aureliusgraphs/SkReOC3yV28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to aureliusgraphs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CA%2Bf9seXHcVVj-67kDKSYwfKx0O4%2BTvLkwYsesno6vMXyn-Q9_w%40mail.gmail.com.
g.V(startNodeId).repeat(both().simplePath()).emit {it.loops() >= 4}
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/5b7d6ec1-0ba8-44ea-b944-6180c2f62c91%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/d9d8e0ee-2dd9-4322-ae2f-7226cfa69850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Aurelius" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/aureliusgraphs/SkReOC3yV28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CA%2Bf9seXHcVVj-67kDKSYwfKx0O4%2BTvLkwYsesno6vMXyn-Q9_w%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
g.V(startNodeId).repeat(both().simplePath()).emit {traverser -> traverser.loops() >= 4}
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraphs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/d094d8e1-d301-4458-abb0-8effe9f5c93c%40googlegroups.com.
g.V(startNodeId).repeat(both().simplePath()).emit(traverser -> traverser.loops() >= 4)
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraphs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/88c59f88-6aae-410c-b2fb-9d88639ba547%40googlegroups.com.