**Attention conservation notice:** Just over 2000 words, requires a little graph theory.

Just for fun, Iâ€™ve 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 to (among other places) the well-known experiments demonstrating â€œsix degrees of separationâ€, 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 â€“ the people who are â€œfriends of a friend of aâ€¦â€ – grows extremely rapidly as the number of links in the chain increases. Milgramâ€™s results suggested that most of the US population is within six degrees of separation from one another, i.e., that itâ€™s truly a small world.

(It is worth noting that doubts have been cast recently on Milgramâ€™s results, notably by Judith Kleinfield. See the account in Duncan Wattsâ€™ recent book â€œSix Degreesâ€.)

The use of â€œnetworksâ€ in the term â€œsmall world networksâ€ 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â€™d call a *graph*, consisting of a set of vertices, V, and a set of edges, E, which are just pairs of vertices. Iâ€™ll use the terms â€œsmall world networkâ€ and â€œsmall world graphâ€ interchangeably, usually preferring the former in applications, and the latter in describing mathematical objects.

What is a small world network? Stated another way, what does it mean to say that a graph has the small world property?

Itâ€™s a graph G = (V,E) with two properties that *a priori* 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.

To make these ideas precise, Watts and Strogatz introduce mathematical definitions for the average path length and clustering in a graph.

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,

[tex]L \equiv \frac{\sum_{vw} l(v,w)}{{n \choose 2}}, [/tex]

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.

Watts and Strogatzâ€™ 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).

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 *clustering coefficient near v*, [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 *clustering coefficient* for the entire graph is then defined to be the average of [tex]C_v[/tex] over all vertices in the graph.

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.

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.

Several questions about small world graphs naturally suggest themselves:

- Do graphs with the small world property exist? The answer is yes, or I wouldnâ€™t be writing these notes, but itâ€™s not
*a priori*obvious that this ought to be the case. How can we construct examples of graphs with the small world property? - 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?
- What, if any, consequences follow from a network being a small world network? E.g., if peopleâ€™s network of acquaintances forms a small world network, does this have any implications for the spread of disease, or of memes?
- Can we formulate a mathematically interesting theory of small world graphs?

**Constructing small world graphs**

Watts and Strogatz suggest a simple method for constructing graphs with the small world property. The method is as follows.

We start by imagining a set of n vertices arranged in a ring in the plane.

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â€™t much matter.

We complete the construction of the graph by *adding a small amount of disorder*. 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 â€œrewireâ€ the edge, changing one of the end vertices to a randomly chosen vertex.

What happens to the average length and clustering coefficient in this graph as p is increased away from zero?

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â€™ll 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.

As p increases away from zero, however, the average path length drops extremely quickly.

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 *logarithmic* in n, rather than linear in n.

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.

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â€™, and define two vertices in Gâ€™ to be connected if the corresponding groups of vertices in G are connected through at least one edge.

A little thought about the â€œrewiringâ€ prescription above shows that vertices in Gâ€™ are typically connected to approximately 2 other randomly chosen vertices in Gâ€™. There will also be some additional edges between neighbouring elements of Gâ€™, but these wonâ€™t make any difference in the subsequent analysis, and we’ll simply ignore them.

It follows from the presence of these random edges in G’ that the average path length in Gâ€™ scales roughly as [tex]\log_2(q)[/tex], where [tex]q = n / m[/tex] is the number of vertices in Gâ€™. 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].

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:

[tex]\frac{2 \log N }{N} n. [/tex]

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.

It ought to be noted that this analysis is quite general: we didnâ€™t make use of any special properties of the initial graph. In general, then, it follows that adding a small amount of disorder to *any* graph will strongly suppress any linear component in the average path length. In the event it hasnâ€™t already been done, itâ€™d be fun to extend this analysis using a more detailed renormalization group style analysis.

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.

Watts and Strogatz show this using computer simulations, but the fundamental reason isnâ€™t 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.

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.

**Why is this interesting?**

Why is this type of graph interesting? Sure, the average path length drops rapidly while the clustering coefficient remains high. But so what? Itâ€™s 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.

Thereâ€™s a couple of reasons to care.

First, Watts and Strogatz (and many others) have shown that there are a *lot* 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.

This is not surprising: based on the argument above weâ€™d 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â€™d expect that pretty much any highly clustered network arising in nature would possess the small world property.

Of course, the fact that small world networks are common doesnâ€™t necessarily make them interesting. Are there any interesting *consequences* which follow from a network having the small world property?

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â€™s not difficult to think up other potential consequences of a network having the small world property.

More generally, thereâ€™s 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 â€“ epidemiology, social networks â€“ 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.

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â€™s by no means so clear *a priori* 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.

Indeed, these ideas suggest an entire broad research program, with several interlocking tasks:

- 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.
- Collecting data about real networks.
- Guessing at possible connections between static and dynamic properties.
- Checking whether these connections actually hold, both through empirical work, and through theoretical argument.
- 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.

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â€™m 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.

Typo alert: “would possess the small

wordproperty”[Feel free to delete this comment. Great post.]

How could I delete such a perceptive comment?!

Seriously, thanks for the kind words, and for the typo alert, which I’ve now fixed.

From gr-qc/0404088:

I am groping for a solid connection here, but it seems that once one has reduced a manifold to a graph by triangulating it, a number of general graph-theoretic notions might be applicable and useful. It would be interesting to understand which ones are and aren’t, and why not. (Leaving aside my half-baked motivation for citing it, this is a deeply interesting analysis.)

I’ve often wondered if small world networks would make a good cluster state quantum computer. Since the path length is small, on average, it seems you don’t have to do as many swap gates to get two qubits to interact. The drawback is that the topology is so disordered, of course. Have you thought about this at all?

Hi Steve — Yes, I’ve had some not unrelated thoughts. As this is currently under development, I’ll email you…

this paper, written by a friend of mine, tries to predict scientific colloborations (on the arxiv) based on the graph of previous colloborations. it doesn’t talk about measurnig clustering, but it has a nice table summarizing different distance measures on graphs.

also, for them the “small world problem” really is a problem, since it means that unless you choose your distance measure in a way that’s robust to the addition of random edges, everyone is close to everyone else.

Nice paper, Aram. I’ve sometimes wondered if related ideas can’t be used to identify emerging themes in a research community, perhaps before any individual is really fully aware of the theme. (A bit more precisely, I’m thinking of using some type of various clustering algorithm, which tries to identify nascent clusters, based on collaboration and citation networks.)

The citation thing is interesting – you’d probably want to divide the weight of a citation by the total number of times a paper is cited, so that citing Shor’s factoring paper is not a strong a predictor as citing his additivity paper. Plus you could tell the clustered people what topics should bring them together rather than just listing names.

Slashdot had a link to another social networking paper, written by some partially quantum people, about how social networks can be used to prevent spam using address books as links. It looks like the main technical tool is some kind of “percolation search,” which resembles google’s pagerank.

http://xxx.lanl.gov/abs/physics/0504026

You didn’t start his riot at Crooked Timber, did you? 😉

I doubt it. The specific complaint addressed in that post – about the Eurovision paper – seems to be a bit of a tempest in a teacup. The post does raise some interesting general issues. I largely agree with Cosma’s excellent post on the subject.

Excellent Article!!

I just started reading about this stuff. Recent paper in SIGKDD-2005 (won the best paper award) talks about densification of degrees and shrinking diameters. I guess shrinking diameters represents this small-world properties of the graph. And, if you look at the friends network, ORKUT, you will realize how close you are to millions of people.. Pretty interesting!