I have lines that touch neighboring polygons. But in some cases line touch same polygons two times, which I do not need.
Thus, I would like to select those line that touch one polygons two times and remove them.
Or, I would like to select lines that touch and connect different polygons.
I am using ArcGIS 10.4.1 with python, arcpy library.
I would be happy to have any suggestions to solve the case.