Added getEdge check.