NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 References
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 User Manuals:
 Web
 Printable
 Chinese
 Czech
 Japanese

  Donate

NetLogo User Community Models

(back to the NetLogo User Community Models)

model institut amb xarxes bo

by Gerard Munté (Submitted: 01/12/2015)

[screen shot]

Download model institut amb xarxes bo
If clicking does not initiate a download, try right clicking or control clicking and choosing "Save" or "Download".(The run link is disabled because this model uses external files.)

## WHAT IS IT?

This example demonstrates how to make a network in NetLogo. The network consists of a collection of nodes, some of which are connected by links.

This example doesn't do anything in particular with the nodes and links. You can use it as the basis for your own model that actually does something with them.

## THINGS TO NOTICE

In this particular example, the links are undirected. NetLogo supports directed links too, though.

## EXTENDING THE MODEL

Try making it so you can drag the nodes around using the mouse.

Use the turtle variable `label` to label the nodes and/or links with some information.

Try calculating some statistics about the network that forms, for example the average degree.

Try other rules for connecting nodes besides totally randomly. For example, you could:

- Connect every node to every other node.
- Make sure each node has at least one link going in or out.
- Only connect nodes that are spatially close to each other.
- Make some nodes into "hubs" (with lots of links).

And so on.

Make two kinds of nodes, differentiated by color, then only allow links to connect two nodes that are different colors. This makes the network "bipartite." (You might position the two kinds of nodes in two straight lines.)

## NETLOGO FEATURES

Nodes and edges are both agents. Nodes are turtles, edges are links.

## RELATED MODELS

* Random Network Example
* Fully Connected Network Example
* Preferential Attachment
* Small Worlds

(back to the NetLogo User Community Models)