<breed>-neighbor?
link-neighbor?

<breed>-neighbor? turtle
link-neighbor? turtle
Turtle Command

Reports true if there is an undirected link between turtle and the caller.

crt 2
ask turtle 0
[
  create-link-with turtle 1
  show link-neighbor? turtle 1  ;; prints true
]
ask turtle 1
[
  show link-neighbor? turtle 0     ;; prints true
]

Take me to the full NetLogo Dictionary