out-<breed>-to out-link-to4.0
out-<breed>-to turtle out-link-to turtle 
Reports a directed link from the caller to turtle or an undirected link connecting the two. If no link exists then it reports nobody. If more than one such link exists, reports a random one. You can think of this as "give me a link that I can use to travel from the caller to turtle."
crt 2 ask turtle 0 [ create-link-to turtle 1 show out-link-to turtle 1 ;; shows link 0 1 ] ask turtle 1 [ show out-link-to turtle 0 ;; shows nobody ]
See also: in-link-from link-with
Take me to the full NetLogo Dictionary