The image below shows a style of fence that I've seen frequently around train tracks. If you look closely, you will see that between the third and fifth horizontal wire from the top, the vertical wires have a kink in them where they run diagonally one way, then the other.
What is the function of this kink?