Compute degree centrality of an undirected graph

Assignment Help Software Engineering
Reference no: EM13318245

1. Compute the degree centrality, betweeness centrality, closeness centrality of nodes in the following graph.

1116_centrality of nodes in the graph.png

2. A k-regular undirected network is a network in which every vertex has degree ??. Show that the vector ?? = (1, 1, 1, . . . , 1) is an eigenvector of the adjacency matrix with eigenvalue ??.

3. Consider an undirected tree of n vertices. A particular edge in the tree joins vertices 1 and 2 and divides the tree into two disjoint regions of n1 and n2 vertices as sketched here:

771_centrality of nodes in the graph1.png

Show that the closeness centralities ??1 and ??2 of the two vertices are related by

615_centrality of nodes in the graph2.png

4. Calculate the betweenness centrality of the ??th vertex from the end of a "line graph" of n vertices. Here a line graph on n vertices 1, 2, 3,..., n has exactly n - 1 edges that connect vertices ?? and ?? + 1, for ?? = 1,..., n - 1.

1294_centrality of nodes in the graph3.png

5. Write a program in your preferred programming language to compute degree centrality of an undirected graph. The program will read the graph from a file called "graph.txt" and output the degree centrality of nodes to a file called "degree.txt".

The file "graph.txt" includes multiples lines in which the first line contains two integers n and m that correspond to the number of nodes and edges in the graph. Each of the following m lines contain two integers u and v, separated by one space, to denote an edge from u to v. Nodes are numbered from 1 to n.

The output file "degree.txt" contains exactly n lines in which the ????h line is the (unnormalized) degree centrality of node ??.

Your submission must include
- The source file(s)
- The sample input/output
- A README file that describes the compile and running instruction

6. Write a program in your preferred programming language to compute (normalized) closeness centrality of an undirected graph. The program will read the graph from a file called "graph.txt" and output the degree centrality of nodes to a file called "closeness.txt".

The file "graph.txt" includes multiples lines in which the first line contains two integers n and m that correspond to the number of nodes and edges in the graph. Each of the following m lines contain two integers u and v, separated by one space, to denote an edge from u to v. Nodes are numbered from 1 to n.

The output file "closeness.txt" contains exactly n lines in which the ????h line is the (normalized) closeness centrality of node ??.

Your submission must include

- The source file(s)
- The sample input/output
- A README file that describes the compile and running instruction

Reference no: EM13318245

Questions Cloud

Out of the motivational theories : Out of the motivational theories, which theory appeals to you the most and why? Also, share one motivational incident at your and try to relate that incident to the theory of your choice
Account a is facing tough competition in the marketplace : Account A is facing tough competition in the marketplace.
Draw ray inside the core by using matlab : Draw ray inside the core by using matlab, draw three circles or four circles with different angles, so every circle has different angle.
Compare with the allowable stresses on a simple span : A 4 X 12 (S4S) hem-fir timber beam carries a superimposed uniformly distributed load of 325 lb/ft on a simple span of 12ft. Determine the maximum bending stress and the maximum shear stress
Compute degree centrality of an undirected graph : Compute the degree centrality- closeness centrality of nodes in the graph - write a program in your preferred programming language to compute degree centrality of an undirected graph.
Calculate max bending stress and shear stress in the pole : A Timber power-line pole is 10 in. in diameter at its base where it is solidly embedded in concrete. The pole extends 20 ft vertically upward from its base and is subjected to a horizontal pull of 300 lb at its top.
What is the angular velocity in the time interval : A machinist turns the power on to a grinding wheel, at rest, at time t=0 s. What is the angular velocity in the time interval from t=0 to t=25s
Calculate the maximum shear force v of resisting : If the allowable shear stress is 100 MPa, calculate the maximum shear force V that a W460 X 60 structural steel wide flange is capable of resisting. Use the average web shear approach.
Explain what radioactive isotope emits a beta particle : What radioactive isotope emits a beta particle to give magnesium-24? a. sodium-24 b. silicon-28 c. aluminium-24 d. magnesium-25

Reviews

Write a Review

Software Engineering Questions & Answers

  Writing a pseudocode statement

Assume myCar is the name of a class variable that references an object, and go is the name of a method. Create a pseudocode statement that uses myCar variable to call method.

  Create eer model using visio notation or supertypes notation

Create an EER model for the following situation using the traditional EER notation, Visio notation or supertypes notation.

  Relational database management systems

As time goes by, more and more emphasis has been placed on design issues, especially database modeling. Determine the reason for this raised emphasis?

  Create either pseudocode or flowchart for program

Create either pseudocode or a flowchart for a program that does the following: Prompt the user to enter a sales tax rate. Prompt the user to enter a price.

  Question related to inheritance

Inheritance is a method in object oriented programming in which you derive new classes from existing classes in your code. Explain why might this be useful?

  Develop a windows navigation diagram

Develop a windows navigation diagram (WND) that maps the events and relationships between the major forms in your application and Develop a layout diagram or prototype of the windows used in the application.

  Identify the principal for viewpoint hierarchy diagram

Identify the principal viewpoints which might be taken into account in the specification of this system and organize these using a viewpoint hierarchy diagram.

  Web authoring application

Compare the drawbacks and benefits of using a Web authoring application, an HTML editor and a text editor for developing websites.

  Question about inheritance

In computer programming would you say that a function could also be called an inheritance item due to the reuse of it in the program?

  Describe the primary sdlc methodologies

The System Development Life Cycle has constructed over the decades to include a variety of Methodologies. Each of these Methodologies utilizes same processes in a different way.

  Prepare a report explaining the possible methods

Prepare a report explaining the possible methods that can be adopted in this particular scenario, resources required for the methods chosen for this investigation, approximate budget to conduct the investigation

  Determine the greatest magnitude negative number

Determine the greatest magnitude negative number one can represent in an 8-bit 2's complement code? Write your result in binary and decimal.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd