...let's say I have four lines (four sets of two coordinates). Together they make a square. Is there a name for the process of identifying that a square can be made?

Obviously I'm thinking of a more complex scenario where I have a CSV of thousands of lines and I want to find all the closed polygons that can be made. I'm sure this has a name though, trying to describe it to Google dosn't work.