removed hasEdge