change hasEdge