Skip to content

Commit

Permalink
Update README.rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Mar 22, 2012
1 parent 5bd1325 commit 122336a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 122336a

Please sign in to comment.