Curves create knots

hello guys so i isotrimmed a surface and when i wanted create lines between each 2 sides of each rectangle my lines create knots,im a beginner to grasshopper please bear with me,thanks
PROBLEM.gh (33.9 KB)

Is this what you’re looking for?

YES THANK YOU SO MUCH MAN ! , i just want to understand whats the problem

because when i tried to make something a bit more complicated i ran into the same problem

Uploading: PROBLEM.gh…
i made a another surface iso trimmed it,deconstructed brep and selected the longer edges of one brep and created a nurbs surface from the two edges that i modified with graphmapper and grafted the list item but i ran into this problem
PROBLEM.gh (37.4 KB)

The two opposite edge of your surface has different directions. So you need to Flip or Reverse one of them.

There seems to be a problem with your attached file, please upload it again.

thanks mate,i sent you another file with another pic if u can can check them out that would be wonderful