Order for this Paper or Similar Assignment Writing Help

Click to fill the order details form in a few minute.

Posted: April 10th, 2022

Compute degree centrality of an undirected graph – Software Engineering

Compute degree centrality of an undirected graph – Software Engineering

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

Check Price Discount

Study Notes & Homework Samples: »

Why Choose our Custom Writing Services

We prioritize delivering top quality work sought by students.

Top Tutors

The team is composed solely of exceptionally skilled graduate writers, each possessing specialized knowledge in specific subject areas and extensive expertise in academic writing.

Discounted Pricing

Our writing services uphold the utmost quality standards while remaining budget-friendly for students. Our pricing is not only equitable but also competitive in comparison to other writing services available.

0% similarity Index

Guaranteed Plagiarism-Free Content: We assure you that every product you receive is entirely free from plagiarism. Prior to delivery, we meticulously scan each final draft to ensure its originality and authenticity for our valued customers.

How it works

When you decide to place an order with Dissertation Help, here is what happens:

Complete the Order Form

You will complete our order form, filling in all of the fields and giving us as much instructions detail as possible.

Assignment of Writer

We analyze your order and match it with a custom writer who has the unique qualifications for that subject, and he begins from scratch.

Order in Production and Delivered

You and your writer communicate directly during the process, and, once you receive the final draft, you either approve it or ask for revisions.

Giving us Feedback (and other options)

We want to know how your experience went. You can read other clients’ testimonials too. And among many options, you can choose a favorite writer.

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00