
How to use the links primitive in NetLogo? | Beginner's Interactive ...
You can create custom link characteristics using the links-own primitive (similar to turtles-own and patches-own). For example, if you are creating a model of rural internet infrastructure, your links may have a bandwidth characteristic: links-own [ bandwidth ] .
NetLogo Help: link - Northwestern University
Given the who numbers of the endpoints, reports the link connecting the turtles. If there is no such link reports nobody. To refer to breeded links you must use the singular breed form with the endpoints. See also patch-at. Take me to the full NetLogo Dictionary.
NetLogo 6.4.0 User Manual: NetLogo Dictionary - Northwestern …
links-own [var1...] <link-breeds>-own [var1...] The links-own keyword, like the globals, breed, <breeds>-own, turtles-own, and patches-own keywords, can only be used at the beginning of a program, before any function definitions. It defines the variables belonging to each link.
How to create links in netlogo and ask link-neighbors to execute ...
May 11, 2016 · Try this to create links with the breed2-on the neighboring patches: ask BREED1 [ if any? breed2-on neighbors [ create-links-with breed2-on neighbors] ask link-neighbors [ set protected true] ] and this, which gets the link-length between the breed1 and it's neighbors
netlogo - How to kill off selected links in a network - Stack Overflow
Dec 12, 2014 · I'm trying to create a command in Netlogo where I ask links on turtles with the color green to live while all other links die, so that the links to and from green turtles live past my tick reset. Anybody know how to ask for a negitive value?
§ Links: Links are agents that connect two turtles. Links can be directed ( from one turtle to another turtle) or undirected (one turtle with another turtle).
Official NetLogo Tutorials and Learning Resources
Oct 14, 2024 · If you are looking for NetLogo learning resources, there are some official NetLogo tutorials: Sample Model: Party; Loading and using models; Interacting with models with NetLogo code; Programming a model from scratch
netlogo change color of a link line - Stack Overflow
Dec 8, 2014 · color is a built-in variable of links just as it is the case for turtles, see here. So this will change the color for all links: ask links [set color red]
How to use the create-links-with primitive in NetLogo?
If you want to create a link with just one specific turtle, you should use the create-link-with primitive. In the model example below, we use the create-links-with primitive to simulate contact tracing. Every time two people are on the same patch, a new link between them is created.
core — pynetlogo - Read the Docs
Create a link with NetLogo. Underneath, the NetLogo JVM is started through Jpype. If netlogo_home , netlogo_version , or jvm_home are not provided, the link will try to identify the correct parameters automatically on Mac or Windows.