org.neo4j.graphalgo.impl.util
Class BestFirstSelectorFactory.BestFirstSelector

java.lang.Object
  extended by org.neo4j.graphalgo.impl.util.BestFirstSelectorFactory.BestFirstSelector
All Implemented Interfaces:
BranchSelector
Enclosing class:
BestFirstSelectorFactory<P extends Comparable<P>,D>

public final class BestFirstSelectorFactory.BestFirstSelector
extends Object
implements BranchSelector


Constructor Summary
BestFirstSelectorFactory.BestFirstSelector(TraversalBranch source, P startData)
           
 
Method Summary
 TraversalBranch next()
          Decides the next position ("where to go from here") from the current position, based on the rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BestFirstSelectorFactory.BestFirstSelector

public BestFirstSelectorFactory.BestFirstSelector(TraversalBranch source,
                                                  P startData)
Method Detail

next

public TraversalBranch next()
Description copied from interface: BranchSelector
Decides the next position ("where to go from here") from the current position, based on the rules. Since TraversalBranch has the TraversalBranch.node() of the position and the TraversalBranch.relationship() to how it got there as well as TraversalBranch.position(), decisions can be based on the current expansion source and the given rules.

Specified by:
next in interface BranchSelector
Returns:
the next position based on the current position and the rules of the traversal.


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.