From 122336a35cafb4456f7d11ddd45035d400b3e63a Mon Sep 17 00:00:00 2001 From: Pablo Fernandez Date: Thu, 22 Mar 2012 01:54:58 -0300 Subject: [PATCH] Update README.rdoc --- README.rdoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rdoc b/README.rdoc index 81f9a35..83254fe 100644 --- a/README.rdoc +++ b/README.rdoc @@ -159,6 +159,9 @@ To Use: @neo.get_path(node1, node2, relationships, depth=4, algorithm="shortestPath") # finds the shortest path between two nodes @neo.get_paths(node1, node2, relationships, depth=3, algorithm="allPaths") # finds all paths between two nodes + @neo.get_shortest_weighted_path(node1, node2, relationships, # find the shortest path between two nodes + weight_attr='weight', depth=2, # accounting for weight in the relationships + algorithm='dijkstra') # using 'weight' as the attribute nodes = @neo.traverse(node1, # the node where the traversal starts "nodes", # return_type "nodes", "relationships" or "paths"