if (target == currentVertex) {
// return false;
TripSequenceShortestPathTree tsSPT = (TripSequenceShortestPathTree) spt;
ResultCollection byTripSequence = tsSPT.getVerticesByTripSequence(currentVertex);
if (byTripSequence == null)
throw new IllegalStateException("expected at least on result");
if (byTripSequence.getItineraryCount() == 0)
return true;
if (byTripSequence.getItineraryCount() >= opts.numItineraries)
return false;
State minVertex = getMinVertex(byTripSequence.getStates().values());
if (current.getWeight() > minVertex.getWeight() * 1.5)
return false;
}