ThomasC
ThomasC

Reputation: 881

How to generate a ring network in Netlogo

Using the Netlogo Networks extension nw:generate-ring will generate a ring network of turtles, in which each turtle is connected to exactly two other turtles.

How could I create a ring network in which each turtle is connected to exactly X (an even number) other turtles please? So maybe it's closest 3 neighbours in the ring on either side for X=6.

Upvotes: 2

Views: 133

Answers (1)

JenB
JenB

Reputation: 17678

you could use the nw:generate-ring to get you started then ask all the turtles to create links with turtles within some distance using nw:turtles-in-radius

Upvotes: 1

Related Questions