NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 NetLogo Publications
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 User Manuals:
 Web
 Printable
 Chinese
 Czech
 Farsi / Persian
 Japanese
 Spanish

  Donate

NetLogo Models Library:
Code Examples

(back to the library)

Link Breeds Example

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

WHAT IS IT?

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.

THINGS TO NOTICE

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)