NetLogo 7.0.0-beta2:

nw:turtles-in-radius

nw:turtles-in-radius radius

Returns the set of turtles within the given distance (number of links followed) of the calling turtle in the current context, including the calling turtle.

nw:turtles-in-radius form will follow both undirected links and directed out links. You can think of turtles-in-radius as “turtles who I can get to in radius steps”.

If you want the primitive to follow only undirected links or only directed links, you can do it by setting the context appropriately. For example: nw:set-context turtles undir-links (assuming undir-links is an undirected link breed) or nw:set-context turtles dir-links (assuming dir-links is a directed link breed).

Example:

Will output:

As you may have noticed, the result includes the calling turtle. This mimics the behavior of the regular NetLogo in-radius primitive.

Take me to the full Networks Extension Dictionary