<breed>-with link-with 4.0
<breed>-with turtle
link-with turtle

Reports a link between turtle and the caller (directed or undirected, incoming or outgoing). If no link exists then it reports nobody. If more than one such link exists, reports a random one.
crt 2
ask turtle 0 [
create-link-with turtle 1
show link-with turtle 1 ;; prints link 0 1
]See also: in-link-from, out-link-to