limit number of crossed edges to check