final MultiDeBruijnVertex nextVertex = backwards ? graph.getEdgeSource(e) : graph.getEdgeTarget(e);
if (e.isRef())
nextReferenceVertex = nextVertex;
else {
final CountSet pathSizesPlusOne = pathSizes.clone();
pathSizesPlusOne.incAll(1);
graph.calculateRejoins(nextVertex, expectedAlternativePathRejoins, anchoring.referenceWithinAnchorsMap.keySet(), pathSizesPlusOne, true, backwards);
}
}
return nextReferenceVertex;
}