15.08.2015 Views

Introduction to the Modeling and Analysis of Complex Systems

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16.3. SIMULATING DYNAMICS OF NETWORKS 355where P (k) is <strong>the</strong> probability for a node <strong>to</strong> have degree k, <strong>and</strong> −γ is <strong>the</strong> scaling exponent(γ = 3 in <strong>the</strong> Barabási-Albert model). Since <strong>the</strong> exponent is negative, this distributionmeans that most nodes have very small k, while only a few nodes have large k(Fig. 16.10). But <strong>the</strong> key implication is that such super-popular “hub” nodes do exist inthis distribution, which wouldn’t be possible if <strong>the</strong> distribution was a normal distribution,for example. This is because a power law distribution has a long tail (also called a fat tail,heavy tail, etc.), in which <strong>the</strong> probability goes down much more slowly than in <strong>the</strong> tail <strong>of</strong>a normal distribution as k gets larger. Barabási <strong>and</strong> Albert called networks whose degreedistributions follow a power law scale-free networks, because <strong>the</strong>re is no characteristic“scale” that st<strong>and</strong>s out in <strong>the</strong>ir degree distributions.0.8100.60.01P(k)0.4P(k)10 -510 -80.210 -110.02 4 6 8 10k10 -141 10 100 1000 10 4kFigure 16.10: Plots <strong>of</strong> <strong>the</strong> power law distribution P (k) ∼ k −γ with γ = 3. Left: In linearscales. Right: In log-log scales.The network growth with preferential attachments is an interesting, fun process <strong>to</strong>simulate. We can reuse most <strong>of</strong> Code 16.10 for this purpose as well. One critical componentwe will need <strong>to</strong> newly define is <strong>the</strong> preferential node selection function that r<strong>and</strong>omlychooses a node based on node degrees. This can be accomplished by roulette selection,i.e., creating a “roulette” from <strong>the</strong> node degrees <strong>and</strong> <strong>the</strong>n deciding which bin in <strong>the</strong>roulette a r<strong>and</strong>omly generated number falls in<strong>to</strong>. In Python, this preferential node selectionfunction can be written as follows:Code 16.11:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!