【问题标题】:Showing links inwards in a layout-circle with NetLogo使用 NetLogo 在布局圆中向内显示链接
【发布时间】:2022-01-15 06:44:38
【问题描述】:

我想知道是否有办法在圆圈内的circle-layout 中引导链接的图形输出。我写了以下程序

to setup
ca
create-turtles 100
layout-circle (sort turtles) max-pxcor - 1
  ask turtles [(create-links-with n-of (random 3) other turtles) ]
end

这给出了下图中的结果。有谁知道让所有链接都显示在圆圈内而不是向外弹出的方法?

【问题讨论】:

    标签: layout netlogo


    【解决方案1】:

    如果您不需要将世界设为圆环,请将其设为一个盒子(通过在界面 > 设置中取消勾选两个环绕框)。链接将自动显示在圆圈内(或仅显示在其周边),因为这是海龟之间新的最短距离。

    【讨论】:

      猜你喜欢
      • 2022-01-18
      • 1970-01-01
      • 1970-01-01
      • 2013-03-21
      • 1970-01-01
      • 2015-04-17
      • 1970-01-01
      • 1970-01-01
      • 2013-11-07
      相关资源
      最近更新 更多