Using arrays to create a node and edge connector

oh sorry i get it now thank you so much didnt read the code properly my mistake