org.neo4j.graphalgo.impl.util
Class DoubleEvaluator
java.lang.Object
org.neo4j.graphalgo.impl.util.DoubleEvaluator
- All Implemented Interfaces:
- CostEvaluator<Double>
public class DoubleEvaluator
- extends Object
- implements CostEvaluator<Double>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleEvaluator
public DoubleEvaluator(String costpropertyName)
getCost
public Double getCost(Relationship relationship,
Direction direction)
- Description copied from interface:
CostEvaluator
- This is the general method for looking up costs for relationships. This
can do anything, like looking up a property or running some small
calculation.
- Specified by:
getCost
in interface CostEvaluator<Double>
direction
- The direction in which the relationship is being
evaluated, either Direction.INCOMING
or
Direction.OUTGOING
.
- Returns:
- The cost for this edge/relationship
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.