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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16.3. SIMULATING DYNAMICS OF NETWORKS 353function.Running this code will give you an animated process <strong>of</strong> r<strong>and</strong>om edge rewiring, whichgradually turns a regular, local, clustered network <strong>to</strong> a r<strong>and</strong>om, global, unclustered one(Fig. 16.9). Somewhere in this network dynamics, you will see <strong>the</strong> Watts-Strogatz smallworldnetwork arise, but just temporarily (which will be discussed fur<strong>the</strong>r in <strong>the</strong> next chapter).Figure 16.9: Visual output <strong>of</strong> Code 16.10. Time flows from left <strong>to</strong> right.Exercise 16.14 Revise <strong>the</strong> small-world network formation model above so that<strong>the</strong> network is initially a two-dimensional grid in which each node is connected <strong>to</strong> itsfour neighbors (north, south, east, <strong>and</strong> west; except for those on <strong>the</strong> boundaries <strong>of</strong><strong>the</strong> space). Then run <strong>the</strong> simulations, <strong>and</strong> see how r<strong>and</strong>om edge rewiring changes<strong>the</strong> <strong>to</strong>pology <strong>of</strong> <strong>the</strong> network.For your information, NetworkX already has a built-in graph genera<strong>to</strong>r function forWatts-Strogatz small-world networks, watts_strogatz_graph(n, k, p). Here, n is <strong>the</strong>number <strong>of</strong> nodes, k is <strong>the</strong> degree <strong>of</strong> each node, <strong>and</strong> p is <strong>the</strong> edge rewiring probability. Ifyou don’t need <strong>to</strong> simulate <strong>the</strong> formation <strong>of</strong> small-world networks iteratively, you shouldjust use this function instead.Scale-free networks by preferential attachment The Watts-Strogatz small-world networkmodel brought about a major breakthrough in explaining properties <strong>of</strong> real-worldnetworks using abstract network models. But <strong>of</strong> course, it was not free from limitations.First, <strong>the</strong>ir model required a “Goldilocks” rewiring probability p (or such a simulation lengthin our revised model) in order <strong>to</strong> obtain a small-world network. This means that <strong>the</strong>ir model

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

Saved successfully!

Ooh no, something went wrong!