Pacer support for path discovery?

35 views
Skip to first unread message

Dana

unread,
Jul 16, 2012, 8:28:27 AM7/16/12
to pacer...@googlegroups.com
Hi,

 I would like to find discover paths between two nodes using Pacer. I would like to query for the start and end nodes of a path and return all existing paths (of a max length lets say 1 or 2)

 Currently, I try to  query : graph.v(:name=>"b").out_e.in_v(:name=>"b") . This gives me a pacer route. How to access the connecting property (if it exists?)?

Cheers,

D.

Darrick Wiebe

unread,
Jul 16, 2012, 11:25:43 AM7/16/12
to pacer...@googlegroups.com
Hi Dana,

You can just add .paths to the end of the route definition. Then instead of (say) 10 result vertices, you'll get 10 arrays, each representing a path through the graph:

graph.v(:name=>"b").out_e.in_v(:name=>"b").paths

Hope that helps.
Darrick
Reply all
Reply to author
Forward
0 new messages