Using arrays to create a node and edge connector

thank you for your help ill study your code.