Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 1 . 3 Project 3 : SNA - due 1 2 / 3 / 2 0 2 3 Summary Create a C + +
Project : SNA due Summary Create a C program that will read in the text file containing graph specifications and display the required results after performing operations on the graph. The program should be able to create the directed graph from the input file and output the results according to the InDegree of Centrality. Social Network Analysis and Common Metrics As social networking is very popular among people, there is a huge interest in the study of extracting information from these networks, the socalled social network analysis SNA The usage of social network analysis, however, is far beyond that of Facebook or Twitter. The principle of SNA can be applied to other things; such as finding the source and flow of an infectious disease, and scheduling the optimal production market distribution for a globalized company. The basic structure of SNA is a graph. To evaluate the characteristics of a graph and the nodes inside, people gradually develop a set of metrics, some of them are: Degree of Centrality In an undirected graph, the degree centrality of the ith node denoted by CDi is the node degree number of edges connected to this node denoted by degi CDidegi We can interpret this as the "how connected" this node is in general sense. In a directed graph, the indegree of centrality comes in two types: the indegree centrality and the outdegree centrality. The indegree centrality is number of edges that are coming to the node. The outdegree centrality uses the number of edges that are coming out of the node. Dataset Description: Social network Accounts and their friends You will be provided with the accounts with their friends and for each friend hishers friends etc. By using these data, build up a graph and calculate the InDegree of Centrality for each account. Input data format A sample of the input data is: github johnstewart github microsoft microsoft oracle The two columns are defining the relationship between two accounts. The account in the second column is following the account in the first column. Thus, this is a directed graph. The edge goes from the account in the second column to the account
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started