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