Shortest Path

39 views
Skip to first unread message

rogerh...@gmail.com

unread,
Apr 5, 2016, 7:53:34 PM4/5/16
to cayley-users
Hi there,

I got following query about shortest path between tow vertices from germlindocs

gremlin> g.v(1).out.loop(1){it.object.id != "5" && it.loops < 6}.path
==>[v[1], v[4], v[5]]

http://gremlindocs.spmallette.documentup.com/#shortest-path


I tried running it on cayley, but cayley always complain "Unexpected token". After i replaced curly bracket with parenthesis, not run time error any more. The thing is this query still does not work. I guess here is cayley might not support "path"?

Anyone can shed some light here? is there any succinct way to get shortest path in cayley?

Thanks a ton!

Reply all
Reply to author
Forward
0 new messages