private static MatchTableImpl createEmptyTable( VariantGraphRanking ranking, VariantGraph graph, Iterable<Token> witness) { // -2 === ignore the start and the end vertex return new MatchTableImpl( StreamSupport.stream(witness.spliterator(), false).toArray(Token[]::new), IntStream.range(0, Math.max(0, ranking.apply(graph.getEnd()) - 1)).toArray()); }