The goal of this assignment is to replicate the results in some of the papers we have been discussing in class. You will have to write code to solve the following questions. You can use any programming language you want. Feel free to use matrix or graph libraries that already implement helpful classes and functions, unless I instruct you otherwise. Work on this assignment individually.
generate_watts_strogatz_graph
to generate randomised ring graphs using the Watts-Strogatz model. The function should take three parameters: \(n\), \(k\), and \(p\). Here \(n\) is the number of the nodes in the network, \(k\) is the degree of each node, and \(p\) is a probability between \(0\) and \(1\). The parameters \(n\) and \(k\) are integers and \(k\) can be even. A single call to this function should create an undirected, regular, ring graph with \(n\) nodes and \(nk/2\) edges, and then rewire every edge with probability \(p\), as described in the caption of Figure 1 of Collective dynamics of 'small-world' networks. Recall that in a regular graph, all nodes have the same degree. Therefore, in this graph, each node has degree \(k\). Implement this function yourself. Do not use a ready-made implementation in some other package or library.Invoke this function with 20 different values of \(p\) and the following values of \(n\) and \(k\):
Experiment with two different sets of choices of values of \(p\): (a) \(0.05 \times l\), where \(l\) takes the value of every integer between \(1\) and \(20\) and (b) \(x^l\), where \(x\) is suitably chosen between 0 and 1 and \(l\) has the same range as before. Make a sensible choice of \(x\) and justify it.
In this problem, you will analyze specific brain connectomes for their small-world properties. The networks you will consider are the following. The first five networks are from the Brain Connectivity Toolbox:
Turn in a typeset (not handwritten) report describing your results and plots for each problem. Mention any difficulties you encountered and how you addressed them. Were there any surprises, i.e., results or trends you did not expect? I am also curious to find out what you learnt from this assignment.