This is a Mathematica simulation of Watts’ “Small Worlds” -model.
The meaning of the parameters used in the model is:
: total number of nodes of the graph
: final average degree of the graph (average number of connections for each node)
: tunable parameter to regulate between the caveman () vs. solaria () propensities for new connections.
: a baseline (small) probability for the creation of a random connection between any couple of nodes
This model can be useful to understand how a social network can build up and develop, starting from the simplest connected network (ring) and using some simple assumptions, such as “the friends of my friends are likely to become my friends too“.
For different values of the parameter the network evolution will change its connection propensity: from one in which only mutual friends drive new connections to one in which new connections are mainly created by chance.
The mean clustering coefficient and the mean graph distance (showed above the graph image) are measures of the clusters formation (highly interconnected subgraphs) and of the average length of connections between any two nodes (along the shortest path) for all the pairs of network nodes.
According to Watts a small world network is characterized by both high clustering and short average distance and this situation may occurs for a certain range of values of the parameter.
This phenomenon is also the basis of the much more popular theory of the six degree of separation. According to this theory there is a relatively very short average distance (just 6 steps) in the huge network of the whole population of our world, that sums up to more than 7 billions nodes (people) in 2014. Yet, despite the relatively small distance, the present social structure of the set of world citizens is not that of a random graph (that would easily explain the short distance between any two nodes) but rather that of highly clustered network with geographical, linguistic, economic or cultural interconnected communities.
Usage of the simulation
Changing the overall graph parameters (, , , ) triggers the whole graph to be recalculated, so it may take some time for the higher values of and or .
The parameter, instead, just shows the steps through which the graph is built until it’s final degree (total number of nodes connections) and doesn’t require a recalculation of the whole graph (so it’s rather quick).
The rationale of the -model and the role of its relevant parameters (, , , ) are explained in the book;
Duncan J. Watts – Small Worlds: The Dynamics of Networks between Order and Randomness
[Princeton University Press – 1999]
There’s a free preview snippet by the editor at Google Books that explains it (from page 44 to page 48).
It’s here (click on page 46).
The parameters used in the model are:
: total number of nodes in the network.
: the average number of connections for each node (or average number of friends for each member of the community) to be reached at the end of the network construction. The parameters and regulate the final total number of edges in the graph: .
A fully connected graph (in which each node has a direct connection with each other node) will have the maximum for a given , with and
() is a tunable parameter to regulate between the caveman () vs. solaria () propensities for new connections.
The caveman community will tend to establish new links only between inhabitants of the same cave so that members of cave A will soon be interconnected and form a cluster of friends. At the same time there will be a very small probability that a caveman of cave A will connect with another caveman of cave B. So the caveman community could be described by the sentence “Everybody you know knows everybody else you know and no one else (or almost no every one else) ”
On the other end there’s the solaria community. Its members could be thought of like modern chat-rooms users that can connect randomly with every other world citizen (and not mainly with just friends of friends). In this community the influence of current friendships over new friendships is very small and new friendships (links) are mainly governed by chance.
() is the baseline probability for the creation of a random connection between any couple of nodes. In this model must be considered a very small probability (say 0.001 or even less for bigger networks) that gets relevance only when the parameter has such values to make the number of friends of friends irrelevant for creating a new connection.
Duncan Watts’ -model is based on the following loop algorithm:
1. At step (time) examine the graph at the previous step and, for each couple of nodes and (that are not already directly connected) calculate:
• : number of nodes which are adjacent both to and (mutual friends of i and j)
• : average degree of the network at time , that is the average number of connections (friends) for every node at time .
2. Calculate the propensity matrix according to the following formula:
The propensity matrix will then be rescaled and normalized to a probability matrix , with so that .
In this matrix can be interpreted as the probability that node i will connect with node j.
Above rule translates in the following two extremes.
For pure caveman communities () it will be:
which means that any couple of people with just one single mutual friend will have a much greater probability to become connected than people without any mutual friends (since is a small number)
On the other extreme, for pure solaria communities (), it will be:
which means that, unless the nodes i and j have reached a critical threshold of mutual friends, the probability of their connection will be the same as the probability of connection between two nodes with no mutual friends at all.
The critical threshold for the number of mutual friends that can actually trigger the connection is set at the rather high value of the current average degree of the network. This can be interpreted considering that, even in a solaria community, if two unlinked people have all their current friends in common (and that’s rather unlikely to happen since there will normally be, for the nodes i and j several friends that are not in common) than they can’t really avoid knowing each other.
For intermediate (and more realistic) forms between the pure caveman and the pure solaria communities, the following picture shows the relations between the “propensity to become friends” and the “mutual friends as a fraction of total friends” for different possible values of the parameter.
The -model is a variant of the more known (and much more simple) -model (also known as Watts–Strogatz model). Anyway the -model seems much more interesting for its intrinsic dynamic characteristics that can help to understand and visualize the network evolution.
The process for building the final graph is based on a loop.
In each cycle of the loop a new edge will be added until the final number of edges is reached ().
The initial condition for the network is a topological ring, in which each node connects to exactly two other nodes, forming a single continuous pathway between linked nodes.
Note: even if this particular choice of the initial condition could seem arbitrary and have some unwanted effect in the subsequent evolution of the network, it has however the following motivations and advantages:
• The initial graph is connected (each node is reachable from each other node) and will stay connected in the following steps (since the algorithm will just add new edges and not delete existing ones). This will make it possible to calculate the average distance between any two nodes, avoiding the possible case in which disconnected subgraphs (islands) builds up. That circumstance could be possible in some social network (and surely that was a typical situation of the social world networks of the past) but that wouldn’t properly reflect the interconnectedness of our present world.
• It has a minimal structure: no vertex is special or different from any other vertex in terms of number of connections.
• It’s minimally connected: it has the minimum number of edges for a connected graph with the minimal structure requirement.
Duncan J. Watts calls this initial condition a substrate and explains how this ring choice for the substrate is supposed to have the minimal possible impact on the evolution of the global network (assuming that the final global network must have a global interdependence characteristic).
Since the initial condition is a graph with nodes and edges, in order to reach the final number of edges () there will be iterations in the loop.
The generic iteration of the loop will go through the following steps:
• Choose a vertex i.
• For every other vertex j, compute and .
These two matrices will depend on the values of the general (fixed) parameters and but also on the dynamic values of the matrix and on the value of calculated form the adjacency matrix built at the previous step .
• The vertex i will then connect with another randomly chosen vertex j. Even if this choice is random it will be weighted by the probabilities.
• When the link ij is established the symmetric adjacency matrix is updated (placing a 1 at positions ij and ji).
The vertices i are chosen in random order, but once a vertex has been allowed to choose e new neighbour (j), it may not choose again until all other vertices have taken their turn.
This democratic procedure limits the possibility, for each node, to be selected more frequently than the others for choosing a partner (since it must wait its turn) but doesn’t prevent some node to be chosen arbitrarily often by the other nodes. This means that there will be a nonzero variance in the degree of the graph’s nodes and that some node can assume the role of a local hub (with its degree higher than the graph mean degree k) in the network evolution.
On the other hand the less frequently chosen nodes will anyway (even if more slowly) increase their number of friends when their turn to choose comes, and they’ll go from 2 friends (initial condition) to a minimum final value of (in the case they are never chosen by the other nodes).
Watts’ conjecture is that:
There exist a class of graphs that are highly clustered yet have characteristic length and length scaling properties equivalent to random graphs. These are called small-world graphs. [p.58]
To verify it Watts used his -model to run simulations that seem to confirm (with high probability) above conjecture.
The demonstration presented in this page (replicating the -model in a small scale) is rather limited in the number of nodes it can manage (in a reasonable time), and so it’s not really suitable to give unquestionable answers to Watts’ conjecture.
Nonetheless it can be useful to better understand the -model and the possible insurgence of small-world networks in the real world.
♦ from http://www.youtube.com:
The Science of Six Degrees of Separation
A video by (the great) Veritasium explaining the basic principles of the “Six degrees” theory.
♦ from other sites:
Reka Albert, Albert-Laszlo Barabasi: Statistical mechanics of complex networks (pdf – arxiv.org)
Duncan J. Watts, Steven H. Strogatz: Collective dynamics of ‘small-world’ networks (pdf – Nature 393, 440-442 – 4 June 1998)
The story of networks (blog – http://www.digitaltonto.com)
David Easley, Jon Kleinberg: Networks, Crowds, and Markets: Reasoning About a Highly Connected World – Cambridge University Press – 2010. There is a complete pre-publication draft (pdf) downloadable at above authors’ page.
from you tube
Duncan J. Watts – Small Worlds: The Dynamics of Networks between Order and Randomness – Princeton University Press – 1999
Steven Strogatz – Sync – Penguin Books – 2003
Author: Luca Moroni – October 2014