AM 5080: Complex Networks Assignment - 4 Due date: Oct 13, 2023 Answer all questions <latexit sha1_base64="Hi8FCLLl4zM6d7PLEuHtzelUK/M=">AAAEdHicjVPNbtNAEHaTACX8tXDgAIeBpFIqQZRUCLiAKvUCtyIorZSk0Xg9tlexd63ddUNk5QV4PG48BhfOjJ0EmrYgVrI1+83vN7PjZ4m0rtf7vlGrN65dv7F5s3nr9p2797a273+2OjeCjoROtDnx0VIiFR056RI6yQxh6id07E8OSv3xGRkrtfrkZhmNUoyUDKVAx9B4u/Z16FMkVUEqT8mgo3lzKB2lg353BAdaWRmQAYTI6KlUEShyU20m3ebf/Dq4O4L3IbiYVsaVs4XQ6BRQgVTSSUyAPX2OrUNQOiAL7bQN/qxyZA4hGVKVHTqHIk75BiZPCNrD0KAoiqFJIZhPxnK+kt0c3sBCW8Fu3n4GNtZTDoqOf9JCQhhYcJo5WVd1Ac0MAooMEQTccSP9vIShfdiZ7HLAyWnxfBhhmuK83V2x9P+w/GexnDHVAXecgjLp/9Z+OsQki3FJYRpzfPatMHjbYyiUKqiynydxrvrfhQou9OOEnIgrc/qSkXBczFWM5YqQ9tGXiXSzcjrnKJU3nuq0mljVRDWDSJ6RWiBSrc2dySMIfkQOleOKSAVrD2b9Pt5q9bq96sBlob8UWt7yHI63vg0DLfKyMpGgtYN+L3OjAo2TIinj55YyFBOMaMCiwpTsqKiWZg47jAQQasMfM6vQ8x4FptbOUp8tU3Sxvagrwat0g9yFr0eFVFnuSIlFojBPym6VG8gdNzyBpBwXCsOrIEDEyHN3vKdNbkL/IuXLwue9bv9l98WHvdZ+Z9mOTe+R99TreH3vlbfvvfMOvSNP1H7UH9ah/qT+s/G40WrsLExrG0ufB97aaXR/AeUfeIc=</latexit> 1. Consider a growing network. (a) If the network grows from an initial number of nodes m by the preferki i ential attachment rule dk dt = t , show that this leads to a stationary degree distribution P (k) = k . (b) If the preferential attachment rule is modified to ↵ > 0, find the stationary distribution. dki dt = ki↵ t , where (c) Sketch the expected degree distribution if the probability of attachment of a new node to any given node in the network is a constant. <latexit sha1_base64="E08swXw48Rj4ziVdDb5waTnyL14=">AAAFnHicdVRtj+M0EM7dtXCUtz34hJDQiDVSV/SqtkLABwonwYdbIapF7MtJTakcZ5pYie2c7dxeFfVP8VP4xr9hnIRl9xYstbHHM88883jspCql87PZXw8ePhoM33r78Tujd997/4MPj558dOlMbQVeCFMa+yLhDkup8cJLX+KLyiJXSYlXSfFj2L96hdZJo8/9vsKN4pmWOym4J9P2yaM/4gQzqRvUtULLPR5GsfSo1ovpBs4NZKhbM3BwgpcIO4sItU6lReExBY3+2tgCaid1Bj5HIAI7tKi95CVw77nIFa2Al5mx0udqAkYjOM+td3BNFuAamGJPRSlf1jihZdq6dMHoKLnGa9AmRfAmuIYk+Jr0CUmD3U3hvM1tEp7IUvo9mN3t7NKFzcrYUDgRI5xAVtQ2UIUUs1AYK7aStZEhw9M7KaZw6iHnDhJEDS4315oguG9x8DUXNygpRVmZ1CFVAOtUMWktbglGhEaMna0p47LYLKHaFrCEeGe5aBZqrL6cnxyaYlzQl/4WJ4cpY6NTwiM0CwSRugnIwLTVhRFvgqRW6M7FkohGlXs6MKNaBn3iyT90boTqi6DoFom+wmjdwZBMbWkExArWSQ3BBV/WnYqMiDPSpiszs7zKW5XYqneftJHEJ6NQqVs3hx5Y3FAr5Knx5LKKD2w6Gv1fN475yQZ+I8k7six2tdo2xVIdfl8F5ZZziu5dk+BaV5Vx2HuvYiuznPrNEkAs9c7vWdsv1HZFPAmmeNKyiXs6nVNMmsNVgKCCA21Od4lneNMt3xXfswlk8hUhJXs6TjLQITZNbBWUUh1i7k0FzQruMzgc4N8qgMooQiF0xqMYdXpHgrvr7dHxbDprB9yfzPvJcdSPs+3Rn3FqRB2ugSi5c+v5rPKbhq6fFGXArx1WXBRU2Zqmmit0m6Z9XA7wBVlS2BlLP7onrfV2RMOVc3uVkKfiPndv7gXjf+2ta7/7dtNIXdUetegS7eruYtJLBd0LQ32XSi7o3ZACRM7pdnh6z0YkwvzNku9PLhfT+dfTr35dHD8b93I8jj6NPo/G0Tz6JnoWPY/OootIDD4Z/DB4Pjgdfjb8afjz8JfO9eGDPubj6M4YXv4NYdbUoQ==</latexit> 2. To generate a scale free undirected network using the preferential attachment algorithm, one starts with an m-clique, and one attaches a new node to m preexisting nodes. The probability of attachment is proportional to the current degree ki of a pre-existing node. It has been shown that the exact degree distribution of the produced network is P [ki = k] = pk = 2m(m + 1) . k(k + 1)(k + 2) In other words, if a node i is selected randomly from the network, the probability that this node is connected to exactly k nodes is equal to pk . If the graph has N nodes, k ranges in the set {m, hdots, N }. (a) Show that PN k=m pk = 1. (b) Suppose that N ! 1. Then k 2 {m, . . . , 1}. What is the average degree < k >, given by N lim X < k >= kpk N !1 k=m AM 5080: Complex Networks Assignment - 4 Due date: Oct 13, 2023 <latexit sha1_base64="6YQDSEroy1ja/lpeg8t06JRqRaw=">AAADZXicbVJLb9NAEHYSHiFQSAriwoERMVIvWE5SHpeKSiDBqSoSaSolIVqvx84q+7B21w3B6p/kxpULf4O144o+2NO3M/PtzHz7RRlnxobhr0azdev2nbvte537D3YePur2dk+MyjXFMVVc6dOIGORM4tgyy/E000hExHESrT6U+ckZasOU/Go3Gc4FSSVLGCXWhRa9RjGLMGWyQJkL1MTieWfGLIrpKJjDRDsIBKgSWW5ROxAjWAUpyqoYJNq10isDKgHDfiD4Rz6smV1CptaOwMkaYkw1IsRuG82ivGy8LakT+D1TEqUFf5YSIYgfwKeL9+2yrCi7aOW6VLS67GAYDH0gMq6jRweD8NvIFzXa3+a2l9c+SDe6AY0mQ2rZGfJNADBZEgvMuDYIGTpJpSUplsuInFv2ysm6qp5xCifAlcoMMAlI6PJi9ffwUVV8QwRCovQ/Ta5MO/KDzgxlfEnpRbcfBmF14CYY1KDv1ed40f05ixV1dGkpJ8ZMB2Fm5wXRllFe/lxuMCN05XaYOijdRGZeVC45h5cuElcDJsqJXUUvMwoijNmIyFUKYpfmeq4M/i83zW3ybl4wWVpE0m2jJOelT0rLuY/XTnK+cYBQ5yhGgS6JJtQ5ynScCIPrK98EJ8Ng8CbY/zLsH+7VcrS9Z94Lb88beG+9Q++zd+yNPdr43Ww3e83d5p/WTutJ6+m2tNmoOY+9K6f1/C9AQw8j</latexit> 3. Write a computer code to generate networks of size N with power law degree distribution with degree exponent . Generate three netwroks with = 2.2 and with N = 103 m N = 104 and N = 105 nodes respectively. What is the percentage of multi-link and self loops in each network? Do the same for networks with = 3. <latexit sha1_base64="8wdKAAgeRBNm1Vs+4zXnfbRhDQI=">AAADnHicbVLbbtNAEHUTLiVc2sITQkIjGkQfUssO5fJS0QsPRVBUpKatlETRejO2V9mLtbsmRFF+ik/hjb9hnKYitIxkaTxz5nLObFJI4XwU/V6p1W/dvnN39V7j/oOHj9bWNx6fOVNajh1upLEXCXMohcaOF17iRWGRqUTieTI6rPLn39E6YfSpnxTYVyzTIhWceQoNNlZ+9hLMhJ6iLhVa5nHW6AmPqrsT9jtO6AwYOJP6MbMI4EqeA3NwvH/6Zf+gBcfM56ioF2dgLHwtVTEBoaGY+NzoFmSo503B5xYR3EQTntAwZJ629q4FyKglN9ozoatxzThqRVHUpDYeM1qdapmH1EhpxrRMYcZotyUbw5DksSIpKyYwFj6HZi9jSrHddthutv7+vGkC08OrLGy/bobQcQjN0WDaswqU0LPdeBF0nui4ipEEj87TfAOp8LTGFY3lwW7emnBCXfKkNGYVCn8URqP2yx3lJIQp6QsnEok/0KmGcJizwqOFHUitUXDALKOTilcOEmNGs7DRQz1cOtBgfTMKo7nBTSdeOJvBwk4G6796Q8OpXHsumXPdOCp8f8os7SSrg5cOC8ZHLMMuuZopdP3p/HHN4CVFhiS/pY/IzKPLFVOmnJuohJCkQO6u56rg/3Ld0qfv+1Ohi9Kj5peD0lJWclcvlVS2yL2ckMO4FdWr4Tlpw0kr1yAR4uuUbzpn7TB+G+58a2/ubS3kWA2eBS+CrSAO3gV7wVFwEnQCXnta+1A7qn2qP69/rH+uH19CayuLmifBP1Y/+wPONyRm</latexit> 4. Using a software such as MATLAB, Mathematica or Numpy in python, generate three synthetic datasets, each containing 10, 000 integers that follow a power-law distribution with = 2.2, = 2.5 and 3. Use kmin = 1. Use statistical tests to fit the three distributions and estimate the degree exponent statistically. Please read Chapter 4 from Barabasi’s book. 5. The degree distribution pk expresses the probability that a randomly selected node has k neighbours. However, if we randomly select a link, the probability that a node at one of its ends has degree k is qk = Akpk , where A is a normalization factor. <latexit sha1_base64="R/AzNhtZfFMLUFDqlyjs0Ir4I2M=">AAAGKHicpVRNbxNJEB1Ymw1hYcPukUuJGG1WskZ2+NpDwoIiIbggkAhBio1VM1Njt9wfQ3cPjtfKz9nL/hUuCIEQV34J1TM2BhPgsHNxu6qr6tV7VZ0UUjjf6bw/dfqnRvPMz2tn18/9cv7CrxsXf3viTGlT2k+NNPZpgo6k0LTvhZf0tLCEKpF0kIz3gv/gBVknjH7spwX1FQ61yEWKnk2Di41bvYSGQs9Il4osejpe7wlP6vB63IfHI4KMhpb4h7FYkZQhDFrFYNwCOuJSzpEDz/cKaxJMhBR+yv/RA4JFnRklp8D4KPWUgTYZwQgdtDhekxiOEu7ExXDPTIhxtkHkMKHVSM7FDY7b3ypUpeWT0QQmB+EdkM5cVWmOPxQUXPf5YLx7B8YQOmjDZESWfXcqX8hjFUrxT0UO5Jh6Y+P1bzG0hX/24a7QWQXrpNiQuQ3oXKmEHtZoq7vkJ8aOK3wIBfduQeLkRK4nwo+gtQ070BuiUsiHqwF5MHNWoUq17HEw61kVzMctYApB4dHqheDHo+NWvOgi4S7u6wpXanQuhqWte1DMqqwYq+mRzvxQ6XRkHOmlzrhUuYa8lCOGgxAs6vFBVh+Hn8aNVayJWoxIsJxc5+9FIyk3socyLSWL9D+TgtAV9lqnWoMHu93Os2vMfatWYnc7DkosSGXSd7s17Z+EYKJD0FVuds+oAm2Ni9emlDykVd7vAa3Lt3bGt5Z6ZdwmrwtkBqamDFsoUdT6cQHMzFGIZzbatTrCtecr8oeD3Ir5ZrwgFpjxLCx8V88HObTvefNyppZ9n0/+qmGwsdmJO9UHXx+688NmNP8eDjZe9zKTcrj2qeTNOOx2Ct+fofUilWG1SkcFpmNm45CPGhW5/qx66I7hClsyyHmxcqM9VNbPI2aonJuqhG8q9CO36gvGk3yHpc//6s+ELkpPOq0L5aUEzxPPryZvpOVniEckE5hawVh5WJhsftSsW2cSuqstf314sh13b8TXHm1v3t6a07EWXYouR1tRN7oZ3Y7uRQ+j/Sht/Nt42XjTeNv8r/mq+a75vr56+tQ85vfoi6/54SMuUAu0</latexit> (a) Find the normalization factor A, assuming that the network has a power law degree distribution with 2 < < 3, with minimum degree kmin and maximum degree krmmax . (b) In the configuration model qk is also the probability that a randomly chosen node has a neighbour with degree k. What is the average degree of the neighbours of a randomly chosen node? (c) Calculate the average degree of the neighbours of a randomly chosen node in a network with N = 104 , = 2.3, krmmin = 1 and kmax = 103 . Compare the results with the average degree of the network < k >. (d) How do you explain the paradox of (c), that is, a node’s friends have more friends than the node itself? <latexit sha1_base64="RWjvg5r8Ii5kZSakplqgAW4HeOs=">AAAFJnicdVRdaxNBFN2aqLV+tfroy8VGqFDXRKSKiNRK0RelQmMLbSh3Z+8mQ2ZnlpnZhjT01/jiX/HFh4qIb/4U72y2n+o+Te7XOffcQ5JCSefb7V8zlxrNy1euzl6bu37j5q3b8wt3PjlTWkFdYZSx2wk6UlJT10uvaLuwhHmiaCsZvgn5rX2yThq96ccF9XLsa5lJgZ5DewuNl7sJ9aWekC5zsujpcG5Xesp3VuIebCji2bAvnfQw8L548fixJj8ydmipMBw1dhwLk8NoIMUApAOE0wyYDJyQpH1AhLoTUvQYH89OzUgrgyn4AVUZcORBasiNSRVxGBkaHSRE+qSaUsgsw/oBQ56hApt1wJJjWDedWJXiCT6zQutZWxdwMhSUGDOM4YNJiRewBAoTUuoYpA3C8Aq6NKVTjLGOvGoQvIqj1A54MGhun3Y6aL1uAeoUWmut5VM6UveBJC9qmU0qLQnPGDxpyA3w6FUoNpzTUOqL6UdrrRi658NMtigILRgtKOwSNMykonjuf1ddwoc96LrApJbDBT3eUjGQy5BaHFVDvCnYOv3qguF3XRvDexxSQLWmsJLnQsk35KLKiW4ZnDyganOFY1N6HgSC/ciFCEIFriEpdWZszhbcr8xVopIHlSHjY5oJ01x3XuahNTCQeWGsR+1BDNAia2AZyrIEzhkRqKQwYm2nljjhW/lBaqHKcNuU+pbYZnx7K5MyIDJnwaexTMGPIWdPlnwsIC+YC+n0jIQAFyN784vtuF198PejUz8Wo/rb2Js/2k2N4HbthWLmO5124XuTYEdWh4/EchYohtinHX5qzMn1JpW4h/CAI2xJdkhmgg4herZjgrlz4zzhSpZt4C7mQvBfuZ3SZ897E6mL0pMWU6CsVOF44T+jtqoa8wOFlcz19AhujkXoXFz578enJ3FnJX768cni6lItx2x0L7ofLUWd6Fm0Gr2LNqJuJBqfG18bR43vzS/Nb80fzZ/T0kszdc/d6NzX/P0Hdwq8YA==</latexit> 6. Please visit http://networkrepository.com which is a repository of scientific network data. Please download the data set in moodle that has been downloaded from this repository. This represents data from a network of artists in facebook. Nodes are labelled from 0 continuously. Each line contains two node labels A and B, representing either a directed link A > B, or an undirected link A B. Undirected links appear once in the file. (a) Using networks of Gephi, draw the topology of the network. Make appropriate use of colors, size and layout to create a clear and informative visualization. (b) Estimate the important characterizers associated with this network. This includes degree distributions, centrality measures etc.