CS 790g Seminar: Complex Networks
Network Lab 3
Due on Wednesday Sep 30, 2009 at 2:30 pm
The Watts Strogatz small world model (3 points)
Go to http://projects.si.umich.edu/netlearn/NetLogo4/SmallWorldWS.html.
This is a NetLogo model that will allow you to vary the rewiring probability.
Small worlds as optimizations (4 points)
- Adjust this probability from 0 to 1, each time hitting "rewire" and allowing it to calculate the clustering coefficient and average path length.
Does your plot agree with what you saw in lecture?
- Try using a spring layout. In what ways do the random links make the world smaller?
Go to http://projects.si.umich.edu/netlearn/wiring.html.
In this model there is a cost to the length of wire, but also a benefit to having short paths in terms on the average number of hops from one node to any other.
Random graphs and giant components (3 points)
- Starting with the regular lattice, rewire edges in order to minimize cost under a range of conditions: wire is expensive, wire is cheap.
Take screenshots and make observations.
- Start with the regular lattice. Loosen your wallet. This will allow you to accept wirings that are quite expensive.
Now tighten your wallet again to the minimum (this will mean that you'll only accept rewirings that have a lower total cost).
The choice of wire cost is yours (you probably want something a bit higher than the absolute minimum).
Capture an image of your network. Make observations.
Go to http://ccl.northwestern.edu/netlogo/models/GiantComponent
and launch the applet. Click 'setup' and then 'go'.
Peer to peer filesharing: a small world? (bonus: 4 points)
Open the file gnutella.net in Pajek. It is a snapshot from 2000 of the Gnutella peer-to-peer filesharing network.
- Try it with 80 nodes and then 400 (if your computer can take it...).
Observe what happens right around the point where the average degree is 1 (the vertical line in the plot).
Comment about the variation in the size of the largest component as you increase the number of edges/nodes.
Submitting your files
- Compute its average clustering coefficient and average shortest path.
- Now generate a random graph with the same number of nodes and edges (or approximately the same average degree).
- Is the network significantly more clustered than random?
- How does the average shortest path compare?
- Can you think of an explanation for the difference?
Submission of your homework is via WebCT.
You must submit all the required files in a single tar or zip file containing all the files for your submission.
Acknowledgement: The assignment is modified from Lada Adamic.