Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Python using the NetworkX library to generate a configuration model network with nodes of degree 1 a...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