Fix overly aggressive discarding of edge candidates introduced by previous commit