Linked objects on web platform

I’m trying to write a pathfinding algorithm and am linking the lead nodes of the path to the unit they are finding the path for. Unfortunately, only one node seems to be able to be linked at any time?

     -> Node
Unit -> Node    <- I try to link all 3 nodes to unit              Unit destination 
     -> Node    <- But only one will link. 

Is there a way of making these link all to the one unit, or is that impossible?