CS 765 Complex Networks
Network Lab 3
Due on Thursday Mar 14, 2013 at 1:00 pm
PageRank (4 points)
Construct a small directed network (about 10 nodes) in GDF or .net format and load it into GUESS. Construct it such that you have at least one node that will have low indegree but high PageRank
- Compute the PageRank of each node by typing
- Color by PageRank
- Compute the indegree
- Size the nodes by indegree
resizeLinear(indegree,minsize,maxsize) (you are choosing minsize and maxsize)
- Turn in an image of your network.
- Point out a node that has high PageRank but low indegree. Explain qualitatively how this came about.
an aside: You can also use the GUESS toolbar pageranktoolW.py, if you'd like to see how the algorithm converges.
Your network vs. random (4 points)
For this lab, you will need to use your Facebook network from 2nd lab
Random graphs and giant components (2 points)
- Compute the average clustering coefficient (Net>Vector>Clustering Coefficients>CC1) and average shortest path (Net>Paths between two vertices > Distribution of distances > From all vertices and look in the report window).
- Select two of your buddies. Look up the value of their individual clustering coefficient in your network.
- Highlight their ego-networks (just them and their friends) and explain the clustering coefficient in terms of their number of friends (well, their number of their friends who are also your friends) and the number of edges they have between them.
- Construct a random network with the same number of nodes and average degree (Net>Random Network>Erdos-Renyi>undirected). Visualize it and include an image.
- Compute the average clustering coefficient and average shortest path for the corresponding random graph.
- Describe how the clustering coefficient and average shortest path of your social network compare to its random counterpart.
- From this conclude whether or not it exhibits small world properties. (bonus)
Submitting your files
- Go to http://ccl.northwestern.edu/netlogo/models/GiantComponent
and launch the applet. Click 'setup' and then 'go'.
- Try it with 80 nodes and then 400 (if your computer can not compute, use smaller node sizes).
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.
Submission of your homework is via WebCampus.
You must submit all the required files in a single document containing all the answers.
Acknowledgement: The assignment is modified from Lada Adamic.