boolean (int fromIndex, int toIndex) { int toId = myGetNodeIdByIndex.fun(toIndex); for (Pair<Integer, GraphEdgeType> edge : myEdgeStorage.getEdges(myGetNodeIdByIndex.fun(fromIndex))) { if (edge.second.isNormalEdge() && intEqual(edge.first, toId)) return true; } return false; }