Let have vertices and edges. Its complement graph has
edges. If both graphs were planar, the planar graph edge bound would give
Equivalently, , whose larger root is . Thus an integer is impossible, proving that
Now suppose that and are both bipartite. In a bipartition , every pair within and every pair within is adjacent in . Since a bipartite graph contains no triangle, , and hence . Equality is attained by the path , whose complement is again a copy of . Therefore the maximum order is
For each crossing pair, delete one of its two edges. At most distinct edges are deleted, and the graph left behind has a crossing-free drawing. The planar graph edge bound therefore gives
so
This is the linear estimate underlying the crossing lemma.