@NotNull
  public Set<GraphEdge> getEdges() {
    Set<GraphEdge> result = new HashSet<>();
    for (int id : myEdgeStorage.getKnownIds()) {
      result.addAll(getAdjacentEdges(myGetNodeIndexById.apply(id), EdgeFilter.ALL));
    }
    return result;
  }
@NotNull
  public Set<GraphEdge> getEdges()