<breed>-neighbors
link-neighbors

<breed>-neighbors
link-neighbors
Turtle Command

Reports the agentset of all turtles found at the other end of undirected links connected to this turtle.

crt 3
ask turtle 0
[
  create-links-with other turtles
  ask link-neighbors [ set color red ] ;; turtles 1 and 2 turn red
]
ask turtle 1
[
  ask link-neighbors [ set color blue ] ;; turtle 0 turns blue
]
end

Take me to the full NetLogo Dictionary