# INFS7450 Project 1 – Fast Computation of User Centrality Measures solution

\$29.99

Category:

## Description

5/5 - (3 votes)

Goal: The purpose of this project is to help students gain practical experiences and understand
the concepts of various centrality measurements for social networks.
Dataset: In this project, you will be working with the public available Facebook social network
data. The Facebook data has been anonymized by replacing the Facebook-internal ids for each
user with a new value. The data contains 4039 nodes, 88234 edges in total. Each line of the
data represents an undirected link starting from one node to another.
The dataset is available from UQ blackboard. See /Assessment/INFS7450 Project One.
1. Calculate the Betweenness Centrality for nodes in the Facebook dataset. (8 marks)
Overview: write code to load the Facebook social network data and construct an
undirected and unweighted graph. Based on the constructed graph, you are required to
write a program to calculate the betweenness centralities for the graph vertices.
Input: The provided Facebook social network data.
Output: The top-10 nodes with the highest betweenness centralities.
Requirements: You may use third-party libraries, such as NetworkX to read, load and
manipulate the Facebook network dataset. However, you must write your own code to
implement the function of node centrality calculation rather than using the third-part or
built-in functions. (You can use any functions in NetworkX other than the functions for
centrality calculation.)
2. Calculate PageRank Centrality for nodes in the Facebook dataset. (7 marks)
Overview: write code to load the Facebook social network data and construct an
undirected and unweighted graph. Based on the constructed graph, you are required to
write a program to calculate the PageRank (with 𝛼 = 0.85,𝛽 = 0.15) centralities for
the graph vertices.
Input: The provided Facebook social network data.
Output: The top-10 nodes with the highest PageRank centralities.
Requirements: You may use third-party libraries, such as NetworkX to read, load and
manipulate the Facebook network dataset. However, you must write your own code to
implement the function of node centrality calculation rather than using the third-part or
built-in functions. (You can use any functions in NetworkX other than the functions for
centrality calculation.)
Programming Languages:
Python and NetworkX are recommended. However, you have your own choices of
preferred programming languages including, but not limited to, Python, MATLAB,
Java, C, C++, etc.
Deliverables:
Your submission must include the following:
1. A report (.pdf). See the given appendix for an example template.
2. A source code file.
3. A results text file. The file must contain two lines of results. The first line is the top10 nodes based on the calculated betweenness centralities. The second line is the
top-10 nodes based on the calculated PageRank centralities. (each item in each line
should be separated by a space.) See the following picture as an example.
Figure 1. the example format of the results
4. Name all the submitted files by using your student ID. For example, 41234567.py
for the source code, 41234567.txt for your submitted results, and 41234567.pdf for