# If you want to make something clean struct node{ segment[] segments } struct segment{ node[2] weight }