Skip to content

Commit

Permalink
Merge pull request #31 from heelhook/master
Browse files Browse the repository at this point in the history
Update doc
  • Loading branch information
maxdemarzi committed Mar 22, 2012
2 parents 24bb3e4 + 122336a commit b578fde
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 b578fde

Please sign in to comment.