I am solving a problem that requires finding and identifying different polygons in an image, then building a list of which polygon is connected to which polygon by a line.