org.neo4j.graphalgo.impl.util
Class IntegerEvaluator
java.lang.Object
org.neo4j.graphalgo.impl.util.IntegerEvaluator
- All Implemented Interfaces:
- CostEvaluator<Integer>
public class IntegerEvaluator
- extends Object
- implements CostEvaluator<Integer>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerEvaluator
public IntegerEvaluator(String costpropertyName)
getCost
public Integer 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<Integer>
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.