Q:
Does the fence need to be erected in a loop?
A: No, an electric fence operates as an open circuit which is completed when in contact
with the animal, it can be erected in a straight line or potentailly in any configuration.
The key is to keep the the fence from contacting the ground and from anything that will
close the circuit other than the animal.