Home Download Help Forum Resources Extensions FAQ NetLogo Publications Contact Us Donate Models: Library Community Modeling Commons Beginners Interactive NetLogo Dictionary (BIND) NetLogo Dictionary User Manuals: Web Printable Chinese Czech Farsi / Persian Japanese Spanish
|
NetLogo Models Library: |
If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web |
This code example shows how to create different kinds of links using link breeds.
The idea of link breeds is based on turtle breeds; both turtles and links can come in different breeds.
Note that many models that use links don't need link breeds. If a model only has one kind of link, the links can be generic, unbreeded links.
Each link breed is either directed or undirected. When you create the breed, you must specify one or the other.
Two undirected links of the same breed cannot exist between the same two turtles. Two directed links of the same breed cannot exist between the same two turtles in the same direction.
(back to the NetLogo Models Library)