$\textbf{Question:}$ Consider a $n×n$ grid of points. Prove that no matter how we choose $2n-1$ points from these, there will always be a right triangle with vertices among these $2n-1$ points.
This question indeed been posted beforeLink, but I was looking for an alternative solution using graph theory.
I have rephrased this question in terms of graph theory like this:
Given an $n$ by $n$ bipartite graph (where the vertices correspond to rows and columns), and if there is point with column $c_i$ and row $r_j$, we add an edge between $(c_i,r_j)$. Then the statement is equivalent to showing that with $2n-1$ edges in this graph, there must exist a path of length at least $3$.
I noticed some obvious facts like, if some vertex has degree more than 1 than the degree of its adjacent vertices will be $1$.
I strongly recommend that you read the other 2 solutions. They provide a much simpler proof.
Note: The setup only considers right triangle with bases parallel to the edges (which gives a path of length 3). This is sufficient to prove the problem. There isn't a need to account for tilted right triangles (which do not lead to a path of length 3).
Your observation of "if some vertex has degree more than 1 than the degree of its adjacent vertices will be 1" is the main crux.
Hint: Instead of focusing on $n\times n$ squares, relax the condition to $ n \times m$ rectangles.
Prove the more general statement by induction:
Base case: Prove it for $ n = 2$ and all $m\geq 2$.
This is left to the reader (Consider the sum of degrees $ d(m_1) + d(m_2) = n + 1$.)
Induction step: Proof by contradiction.
Suppose for $n, m \geq 3$, that there is such a graph with no path of length 3 for $ n, m \geq 2$.
There is a vertex (WLOG $c_1$) of degree $d \geq 2$.
If $d = m$, clearly any other edge not involving $c_1$ gives us a path of length 3.
If $d = m-1$, remove this vertex and all but 1 of it's neighbors, which gives us a $ (n, 2)$ bipartite graph with $n+m-1-(m-2) \geq n + 2 -1 $ edges.
Else, remove this vertex and all of it's neighbors, which gives us a $ (n-1, m - d)$ bipartite graph with $ n+m - 1 - d \geq (n-1) + (m-d) - 1 $ edges.