Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Depending on what seems more relevant in your graph, pick one of the following local notions : Decay centrality Betweenness centrality Closeness

Depending on what seems more relevant in your graph, pick one of the following local notions :

• Decay centrality

 • Betweenness centrality

 • Closeness centrality 

• Clustering 

1) Provide a code computing the given centrality using basic functions of networks (you are not allowed to use direct functions of network). 

2) Discuss why you picked this measure and who is the most central in your network based on your choice. 

3) Provide the cumulative distribution for this centrality and give a graphical representation of your graph (log-log, log, or normal representation as you think it is more relevant)

1) Write a function to compute the PageRank of the nodes in a graph (you are not allowed to use built-in functions from NetworkX).

 2) Run it on your graph using α = 0.15, save the total number of iterations, and check that your function returns the same results (in terms of the scores) as the built-in function from NetworkX. 

3) Identify the node with the highest PageRank, compare it with the one you got from week 3, and give an interpretation of the possible difference. 

4) Provide the cumulative distribution, compare it with the one you got from week 3 (the above questions), and comment on the results.

 5) Optional: Re-run the PageRank using α = 0.5, save the total number of iterations, compare with the results (in terms of both the number of iterations and the cumulative distribution) obtained for α = 0.15, and comment.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Answer Part 1 Compute Closeness Centrality def shortestpathsgraph source Compute shortest paths from ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Communication

Authors: Kitty O. Locker, Jo Mackiewicz, Jeanine Elise Aune, Donna S. Kienzler Professor

13th Edition

1265045631, 978-1265045630

More Books

Students also viewed these Operating System questions