adds all links for a given node