Definition: An edge-component is a sequence of some consecutive collinear-segments.
Consider an $n \times n$ grid-like arrangement of $2n$ lines. Is there any idea about the number of simple cycles with exactly $2n$ edge-components such that each line in the grid contains exactly one edge-component of the cycle? In other words, the cycles should traverse all the lines. A simple cycle is a cycle which passes through the nodes exactly once.
In the picture you can see a $7\times7$ grid-like arrangement and a desired 14-cycle.

Any hint or observation is helpful.

What is your question? As there are $n$ vertical lines and $n$ horizontal lines, the circuit will certainly have at least $2n$ segments. Proving that you can always do it with $2n$ segments is not difficult: just imagine a staircase. Are you looking for how many different circuits are possible? Are rotation and reflection considered?