Created a link between EndPoint and RectShape & created an arraylist for storylinenodeconnection which will be used to store the sequence of connection between 2 nodes