Question: Write a computer program in the programming language of your choice that generates a configuration model network with nodes of degree 1 and 3

Write a computer program in the programming language of your choice that generates a configuration model

Write a computer program in the programming language of your choice that generates a configuration model network with nodes of degree 1 and 3 only and then calculates the size of the largest component. a) Use your program to calculate the size of largest component for a network of n = 10 000 nodes with p = 0.6 and p3 = 0.4 (and pk = 0 for all other values of k). b) Modify your program to calculate the size of the largest component for values of P from 0 to 1 in steps of 0.01, then make a graph of the results as a function of p1. Hence estimate the value of p at the phase transition where the giant component disappears.

Step by Step Solution

3.47 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python using the NetworkX library to generate a configuration model network with nodes of degree 1 a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!