Farsi / Persian
NetLogo Models Library:
Note: If you download the NetLogo application, every model in the Models Library is included.
The code example provides an illustration of how to import network data from external files. This is useful when you have a specific network, perhaps created in another program or taken from real world data, that you would like to recreate in NetLogo.
The code example is useful when you have network data in a format not supported by the Networks extension.
It imports data from two different files. The first is the
"attributes.txt" file, which contains information about the nodes -- in this case, the
color of each node. The second is the
"links.txt" file, which contains information on how the nodes are connected and the strength of their connection.
The link primitives are used to represent and process connections between nodes.
The file primitives are used to read data from external files.