{"id":203,"date":"2005-05-06T10:26:03","date_gmt":"2005-05-06T00:26:03","guid":{"rendered":"http:\/\/michaelnielsen.org\/?p=203"},"modified":"2005-05-06T10:26:03","modified_gmt":"2005-05-06T00:26:03","slug":"small-world-networks","status":"publish","type":"post","link":"https:\/\/michaelnielsen.org\/blog\/small-world-networks\/","title":{"rendered":"Small world networks"},"content":{"rendered":"<p><strong>Attention conservation notice:<\/strong> Just over 2000 words, requires a little graph theory.<\/p>\n<p>Just for fun, I\u00e2\u20ac\u2122ve been doing a little reading on <em>small world networks<\/em>, a topic that started to attract a lot of interest after a 1998 paper in <em>Nature<\/em>, by Duncan Watts and Stephen Strogatz.<\/p>\n<p>The idea of small world networks goes back to (among other places) the well-known experiments demonstrating \u00e2\u20ac\u0153six degrees of separation\u00e2\u20ac\u009d, conducted in the 1960s by the astonishing psychologist Stanley Milgram.  This is the idea that while you personally only know a relatively small sample of the total population, your extended friendship network \u00e2\u20ac\u201c the people who are \u00e2\u20ac\u0153friends of a friend of a\u00e2\u20ac\u00a6\u00e2\u20ac\u009d &#8211; grows extremely rapidly as the number of links in the chain increases.   Milgram\u00e2\u20ac\u2122s results suggested that most of the US population is within six degrees of separation from one another, i.e., that it\u00e2\u20ac\u2122s truly a small world.<\/p>\n<p>(It is worth noting that doubts have been cast recently on Milgram\u00e2\u20ac\u2122s results, notably by Judith Kleinfield.  See the account in Duncan Watts\u00e2\u20ac\u2122 recent book \u00e2\u20ac\u0153Six Degrees\u00e2\u20ac\u009d.)<\/p>\n<p>The use of \u00e2\u20ac\u0153networks\u00e2\u20ac\u009d in the term \u00e2\u20ac\u0153small world networks\u00e2\u20ac\u009d seems to me a bit peculiar, since, at least among the people I know, the mathematical object being referred to as a network is what we\u00e2\u20ac\u2122d call a <em>graph<\/em>, consisting of a set of vertices, V, and a set of edges, E, which are just pairs of vertices.  I\u00e2\u20ac\u2122ll use the terms \u00e2\u20ac\u0153small world network\u00e2\u20ac\u009d and \u00e2\u20ac\u0153small world graph\u00e2\u20ac\u009d interchangeably, usually preferring the former in applications, and the latter in describing mathematical objects.<\/p>\n<p>What is a small world network?  Stated another way, what does it mean to say that a graph has the small world property?<\/p>\n<p>It\u00e2\u20ac\u2122s a graph G = (V,E) with two properties that <em>a priori<\/em> might appear to be contradictory: (1) typical pairs of vertices in the graph have short paths between them, and (2) the graph is highly clustered.<\/p>\n<p>To make these ideas precise, Watts and Strogatz introduce mathematical definitions for the average path length and clustering in a graph.<\/p>\n<p>The average path length is defined as you would expect: define the length [tex]l(v,w)[\/tex] between two vertices, v and w, as the minimum number of edges that need to be traversed to pass from v to w (or vice versa).  Then the average path length L is simply the average value of [tex]l(v,w)[\/tex], with v and w chosen uniformly at random,<\/p>\n<p>[tex]L \\equiv \\frac{\\sum_{vw} l(v,w)}{{n \\choose 2}}, [\/tex]<\/p>\n<p>where the sum is over all distinct pairs of vertices, v and w, and n is the number of vertices in G.  Note that for these definitions to make sense we require that the graph be connected.<\/p>\n<p>Watts and Strogatz\u00e2\u20ac\u2122 clustering coefficient is defined in a less intuitive fashion. The goal is to define a quantity C which varies between 0 (unclustered) and 1 (highly clustered).<\/p>\n<p>To do this, first fix a vertex, v.  Suppose we consider the set of vertices S which are neighbours of v.  Suppose S has k elements.  How connected are the vertices in S to one another?  If every vertex in S is connected to every other vertex in S, then there are [tex]{k \\choose 2}[\/tex] edges between the elements of S.  In such a case we would say that the graph is highly clustered about the vertex v.   We capture this idea by defining the <em>clustering coefficient near v<\/em>, [tex]C_v[\/tex], to be the number of edges between vertices in S, divided by the maximum possible number, [tex]{k \\choose 2}[\/tex].   The <em>clustering coefficient<\/em> for the entire graph is then defined to be the average of [tex]C_v[\/tex] over all vertices in the graph.<\/p>\n<p>Obviously, the clustering coefficient varies between 0 and 1, with a value near 0 meaning that most of the vertices connected to any given vertex v are not connected to each other; conversely, a value near 1 mean that most of the neighbours of any given vertex v will tend to be connected to one another.<\/p>\n<p>I must admit, I harbour doubts both about how mathematically natural the clustering coefficient is, andabout how well it captures the concept of the graph being highly clustered.  In particular, I would not be surprised to discover that there are other quantities which capture the same intuition, but which are far more powerful mathematically as tools for investigating small world graphs.  Nonetheless, this was the definition that Watts and Strogatz used, and I will follow their lead here.<\/p>\n<p>Several questions about small world graphs naturally suggest themselves:<\/p>\n<ol>\n<li>Do graphs with the small world property exist?  The answer is yes, or I wouldn\u00e2\u20ac\u2122t be writing these notes, but it\u00e2\u20ac\u2122s not <em>a priori<\/em> obvious that this ought to be the case.  How can we construct examples of graphs with the small world property?<\/li>\n<li>How commonly do small networks arise in nature?  Might they arise in collaboration networks for movie actors, musicians, or scientists, in friendship networks, or link patterns in the internet? Under what general circumstances can small world networks arise?<\/li>\n<li>What, if any, consequences follow from a network being a small world network?  E.g., if people\u00e2\u20ac\u2122s network of acquaintances forms a small world network, does this have any implications for the spread of disease, or of memes?<\/li>\n<li>Can we formulate a mathematically interesting theory of small world graphs?<\/li>\n<\/ol>\n<p><strong>Constructing small world graphs<\/strong><\/p>\n<p>Watts and Strogatz suggest a simple method for constructing graphs with the small world property.   The method is as follows.<\/p>\n<p>We start by imagining a set of n vertices arranged in a ring in the plane.<\/p>\n<p>Now connect each vertex to its k nearest-neighbours, in both the clockwise and anti-clockwise directions.  Here, k is just some small constant, e.g., k = 2 or k = 3, whose exact value doesn\u00e2\u20ac\u2122t much matter.<\/p>\n<p>We complete the construction of the graph by <em>adding a small amount of disorder<\/em>.  More precisely, let p > 0 be a small parameter.  For every single edge in the lattice, with probability p we leave it alone, and with probability 1-p we \u00e2\u20ac\u0153rewire\u00e2\u20ac\u009d the edge, changing one of the end vertices to a randomly chosen vertex.<\/p>\n<p>What happens to the average length and clustering coefficient in this graph as p is increased away from zero?<\/p>\n<p>At p = 0 we see that the average path length between two vertices is roughly n \/ 4k, where n is the number of vertices in the graph.  The reason is that if we choose two vertices at random on the ring, then typically they\u00e2\u20ac\u2122ll be about a quarter of the way around the ring from one another, and we can get from one to the other in roughly n \/ 4k hops, hopping k vertices at a time.<\/p>\n<p>As p increases away from zero, however, the average path length drops extremely quickly.<\/p>\n<p>One way of seeing this is to do a computer simulation.  Watts and Strogatz do this, finding that the average path length plummets, quickly becoming <em ]>logarithmic<\/em> in n, rather than linear in n.<\/p>\n<p>Another way of seeing that path lengths should drop very quickly when disorder is introduced is the following heuristic argument, inspired by the renormalization group technique from statistical physics.<\/p>\n<p>Suppose we subdivide the vertices in the graph up into groups of [tex]m \\approx 2 \/ p,[\/tex] vertices.   We will treat those groups as single vertices in a new graph, G\u00e2\u20ac\u2122, and define two vertices in G\u00e2\u20ac\u2122 to be connected if the corresponding groups of vertices in G are connected through at least one edge.<\/p>\n<p>A little thought about the \u00e2\u20ac\u0153rewiring\u00e2\u20ac\u009d prescription above shows that vertices in G\u00e2\u20ac\u2122 are typically connected to approximately 2 other randomly chosen vertices in G\u00e2\u20ac\u2122.  There will also be some additional edges between neighbouring elements of G\u00e2\u20ac\u2122, but these won\u00e2\u20ac\u2122t make any difference in the subsequent analysis, and we&#8217;ll simply ignore them.<\/p>\n<p>It follows from the presence of these random edges in G&#8217; that the average path length in G\u00e2\u20ac\u2122 scales roughly as [tex]\\log_2(q)[\/tex], where [tex]q = n \/ m[\/tex] is the number of vertices in G\u00e2\u20ac\u2122.  It follows that average path lengths in G must scale roughly as [tex]m \\log_2 (n\/m) \\approx 2 \\log_2(np\/2) \/ p[\/tex].<\/p>\n<p>Define [tex]N \\equiv np[\/tex], so, up to a small constant of proportionality, N scales as the average number of rewirings in the graph.  When [tex]N > 2[\/tex] we see that the average path length scales as:<\/p>\n<p>[tex]\\frac{2 \\log N }{N} n. [\/tex]<\/p>\n<p>Thus, as N rises, we see that the linear term in the average path length is very rapidly suppressed.  This occurs for any value of p much larger than 1\/n.<\/p>\n<p>It ought to be noted that this analysis is quite general: we didn\u00e2\u20ac\u2122t make use of any special properties of the initial graph.  In general, then, it follows that adding a small amount of disorder to <em>any<\/em> graph will strongly suppress any linear component in the average path length.  In the event it hasn\u00e2\u20ac\u2122t already been done, it\u00e2\u20ac\u2122d be fun to extend this analysis using a more detailed renormalization group style analysis.<\/p>\n<p>The behaviour of the clustering coefficient is quite different.  At p = 0 the clustering coefficient is obviously quite close to one.  But as disorder is added, and p is increased, the clustering coefficient remains close to one, changing only very slowly.<\/p>\n<p>Watts and Strogatz show this using computer simulations, but the fundamental reason isn\u00e2\u20ac\u2122t difficult to understand: even when a little bit of disorder is added, most edges in the graph are not changed, and so most clusters in the graph are not affected.<\/p>\n<p>In other words, when p is small but non-zero, the resulting graph is highly clustered, but also has short average path lengths.  In short, it has the small world property.<\/p>\n<p><strong>Why is this interesting?<\/strong><\/p>\n<p>Why is this type of graph interesting?  Sure, the average path length drops rapidly while the clustering coefficient remains high.  But so what?  It\u00e2\u20ac\u2122s surely not that difficult to come up with other graph properties, some of which change precipitously when disorder is added to a regular graph, and others of which change only very slightly.<\/p>\n<p>There\u00e2\u20ac\u2122s a couple of reasons to care.<\/p>\n<p>First, Watts and Strogatz (and many others) have shown that there are a <em>lot<\/em> of small world networks which arise in nature.  Many different types of human (and non-human) relationship network have the small world property.  So too do many artificial networks, like the power grid, or the pattern of links on the internet.<\/p>\n<p>This is not surprising: based on the argument above we\u00e2\u20ac\u2122d expect that any network which starts out highly clustered, and which has a little disorder added, will have the small world property.  Most natural systems are noisy, so we\u00e2\u20ac\u2122d expect that pretty much any highly clustered network arising in nature would possess the small world property.<\/p>\n<p>Of course, the fact that small world networks are common doesn\u00e2\u20ac\u2122t necessarily make them interesting.  Are there any interesting <em>consequences<\/em> which follow from a network having the small world property?<\/p>\n<p>As an example where this is the case, Watts and Strogatz present a simple model of the spread of infectious diseases through a network, and argue that diseases ought to spread much more rapidly in a small world network than they would through a network that does not have the small world property.  It\u00e2\u20ac\u2122s not difficult to think up other potential consequences of a network having the small world property.<\/p>\n<p>More generally, there\u00e2\u20ac\u2122s an extremely interesting idea here: the idea that we can understand things about the function of a network (i.e., its dynamics), simply by looking at its static structure.   This is, I gather, quite an old idea, in certain specific contexts \u00e2\u20ac\u201c epidemiology, social networks \u00e2\u20ac\u201c but the Watts and Strogatz paper emphasizes that it may be possible to study this connection from a more abstract point of view, and reach more general conclusions, while at the same time making the connection to concrete examples.<\/p>\n<p>Analogous ideas are, of course, used in physics, where simple static properties of a system (e.g., its dimensionality) can be used to make predictions about its dynamical properties (e.g., whether it can undergo a phase transition at nonzero temperature).  But it\u00e2\u20ac\u2122s by no means so clear <em>a priori<\/em> that the same idea can be successfully applied to more complex systems, and I think that one nice thing about the Watts and Strogatz paper is that it suggests a wide class of examples where this can potentially be done.<\/p>\n<p>Indeed, these ideas suggest an entire broad research program, with several interlocking tasks:<\/p>\n<ul>\n<li> Building a taxonomy of static and dynamic properties whose presence or absence in a network can be easily checked.  Some of these properties might be rather specialized, while others might be quite generally applicable in all networks.  <\/li>\n<li> Collecting data about real networks.<\/li>\n<li>Guessing at possible connections between static and dynamic properties.<\/li>\n<li> Checking whether these connections actually hold, both through empirical work, and through theoretical argument.<\/li>\n<li>Ideally, this will then allow us to make predictions about the properties of other networks, and perhaps exert some kind of control over those properties.<\/li>\n<\/ul>\n<p>For me personally, I can see a lot of interesting avenues over on the theoretical side, developing the appropriate mathematical tools to illuminate these kinds of questions.  Of course, I\u00e2\u20ac\u2122m very ignorant of what has already been done in this vein, and it would be useful to spend some time (a) figuring out what the important problems to address are, and (b) learning a bit about what has already been done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attention conservation notice: Just over 2000 words, requires a little graph theory. Just for fun, I\u00e2\u20ac\u2122ve been doing a little reading on small world networks, a topic that started to attract a lot of interest after a 1998 paper in Nature, by Duncan Watts and Stephen Strogatz. The idea of small world networks goes back&hellip; <a class=\"more-link\" href=\"https:\/\/michaelnielsen.org\/blog\/small-world-networks\/\">Continue reading <span class=\"screen-reader-text\">Small world networks<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,3],"tags":[],"class_list":["post-203","post","type-post","status-publish","format-standard","hentry","category-creative","category-3","entry"],"_links":{"self":[{"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":0,"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"wp:attachment":[{"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelnielsen.org\/blog\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}