Re: [TinkerPop] DFS algorithm using Gremlin

426 views
Skip to first unread message

Stephen Mallette

unread,
Oct 10, 2012, 5:45:46 AM10/10/12
to gremli...@googlegroups.com
I'm not sure if this completely answers your question, but Gremlin is
naturally depth first:

https://github.com/tinkerpop/gremlin/wiki/Depth-First-vs.-Breadth-First

stephen

On Wed, Oct 10, 2012 at 1:45 AM, kirtiraj darwai <vda...@gmail.com> wrote:
> hi,
>
> i want to write query for depth first search algorithm in Gremlin
> can anyone please help me ???
>
> --
>
>

kirtiraj darwai

unread,
Oct 11, 2012, 7:03:48 AM10/11/12
to gremli...@googlegroups.com
yeah Gremlin is naturally DFS but if i want to write query for other traversal algo like BFS.
so is it possible to have that type of query ????

Stephen Mallette

unread,
Oct 11, 2012, 7:11:29 AM10/11/12
to gremli...@googlegroups.com
That same link describes how to do depth-first and breath-first:

https://github.com/tinkerpop/gremlin/wiki/Depth-First-vs.-Breadth-First

Gremlin even let's you intermingle the two.

Stephen
> --
>
>
Reply all
Reply to author
Forward
0 new messages