BekIntMap (@NotNull LinearGraph permanentGraph, @NotNull GraphLayoutImpl graphLayout, @NotNull TimestampGetter timestampGetter) { BekSorter bekSorter = new BekSorter(permanentGraph, graphLayout, timestampGetter); List<Integer> result = bekSorter.getResult(); assert result.size() == permanentGraph.nodesCount(); return createBekIntMap(result); }