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