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.

378CHAPTER 17. DYNAMICAL NETWORKS II: ANALYSIS OF NETWORK TOPOLOGIESnx.draw(g, positions, with_labels = True)show()The result is shown in Fig. 17.4.2492825 27231231 22231372933328120 2130140191726 1815111046 516Figure 17.4: Visual output <strong>of</strong> Code 17.7.We can use this shortest path length <strong>to</strong> define several useful metrics <strong>to</strong> characterize<strong>the</strong> network’s <strong>to</strong>pological properties. Let’s denote a shortest path length from node i <strong>to</strong>node j as d(i → j). Clearly, d(i → i) = 0 for all i. Then we can construct <strong>the</strong> followingmetrics:Characteristic path length∑i,jd(i → j)L =n(n − 1)(17.15)where n is <strong>the</strong> number <strong>of</strong> nodes. This formula works for both undirected <strong>and</strong>directed networks. It calculates <strong>the</strong> average length <strong>of</strong> shortest paths for allpossible node pairs in <strong>the</strong> network, giving an expected distance between twor<strong>and</strong>omly chosen nodes. This is an intuitive characterization <strong>of</strong> how big (orsmall) <strong>the</strong> world represented by <strong>the</strong> network is.

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

Saved successfully!

Ooh no, something went wrong!