How to generate a ring network in Netlogo

时间:2015-10-29 15:41:39

标签: 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.

1 个答案:

答案 0 :(得分:1)

你可以使用nw:generate-ring让你开始然后让所有的海龟使用nw:在半径中的乌龟在一定距离内创建与海龟的链接