Truss support list

I wanted to ask for the diagonal support structure why the list goes from i to i +2, as surely with the node point it should go from i to i +1 on the rectangle above it (from node 0 to node 1 on the above rectangle)? Basically, how does the list part work in order to create the truss structure?
Credit to hs_kim who created this solution,
Many thanks