Skip to content

Commit

Permalink
updated pathrater
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Deiters authored and Matthew Deiters committed Jan 27, 2010
1 parent 348aff6 commit e6f64d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neo4jr/path_rater.rb
Expand Up @@ -4,7 +4,7 @@ def get_cost path, start_cost, cost_evaluator, cost_accumulator
cost = start_cost
previous = nil
path.each do |r|
cost = cost_accumulator.addCosts(cost, cost_evaluator.getCost(r, r.getEndNode == previous)) if r.kind_of? org.neo4j.api.core.Relationship
cost = cost_accumulator.addCosts(cost, cost_evaluator.getCost(r, r.getEndNode == previous)) if r.kind_of? org.neo4j.graphdb.Relationship
previous = r
end
cost
Expand Down

0 comments on commit e6f64d5

Please sign in to comment.