return ( path.endNode().equals( end ) ? Evaluation.INCLUDE_AND_PRUNE
: Evaluation.EXCLUDE_AND_CONTINUE );
}
};
final Traverser traverser = TRAVERSAL.expand( expander ).order(
new SelectorFactory( costEvaluator, time ) ).evaluator(
evaluator ).traverse( start );
return new Iterable<WeightedPath>()
{
public Iterator<WeightedPath> iterator()
{
return new StopAfterWeightIterator( traverser.iterator(), costEvaluator );
}
};
}