avoid edges on same line and vertices lying on edges