Graphs and NetworksGraphs in Everyday Life
Throughout this course we have seen many applications of graph theory, though some were somehow contrived. It turns out, however, that graphs are at the very heart of many objects and concepts in everyday life.
The internet, for example, is a vast, virtual graph. Every vertex is an individual webpage, and every edge means that there is a hyperlink between two pages. Note that links only go one way, so this graph is
Some websites, like Wikipedia or Facebook, have lots of incoming links, while many smaller websites may have very few incoming links. This is the underlying concept which Google uses to sort search results.
Websites with more incoming links tend to be of higher quality and should be shown at the top of the search results. For example, when searching for “London”, official tourist information sites are shown before small shops in London, or blogs of people who live in London. This simple idea from Graph theory, the Page Rank Algorithm, made Google significantly better than other early search engines.
The internet is the largest network ever created by mankind. This image shows a very small proportion of all the servers connected to the internet:
While websites and hyperlinks form a virtual graph, there is also the physical network of computers, servers, routers, phone lines and cables.
Every time you make a phone call or load a website, network operators have to find a way to connect sender and receiver, without exceeding the capacity of any individual cable or connection. Graph theory and probability make it possible to guarantee a reliable service, for example by finding diversions when a particular connection is busy.
Graphs also play an important role in transportation and navigation. All flight, train and subway networks form graphs, which can be used when creating efficient schedules. One of the most recognisable graphs is the London Underground map:
All roads and motorways also form a large network, which is used by navigation services like Google Maps when working out the shortest route between two given points.
In the future, Intelligent Transportation Systems will reduce congestion and accidents by routing cars more efficiently, using location data collected from smartphones and self-driving cars. This could save millions of hours lost on the road every year, significantly reduce pollution, and allow emergency services to travel faster.
This image shows the network of commercial airline flights across northern Europe.
There are countless other graphs in science, engineering or everyday life:
Finally, let us think about one particularly good example of graphs which exist in everyday life: social media. Here, vertices represent
When we start drawing social media graphs, we can clearly see certain clusters of mutual friends, who may have gone to the same school or live in the same city. We can also determine people’s centrality, which depends on how well-connected a vertex is, and which may be a measure of a person’s popularity in social media.
In 2014, Facebook had 1.4 billion active users and a total of more than 200 billion friendships. Half of all Facebook users have more than 200 friends, and since most of our friends have a similar number of friends, we could easily have tens of thousands of friends of friends.
An exciting question would now be: if you pick any two random Facebook users, how many “friendship edges” would you need to follow to get from one to the other? For example, the distance between friends is
Based on a study which Facebook conducted in 2016, you are, on average, connected to anyone else on Facebook through at most 3.57 other people: we say there are 3.57 degrees of separation.
In other words, if you pick any one of the billions of Facebook users all around the world, they will have a friend of a friend who knows a friend of one of your friends. And this includes celebrities, politicians or royalty…
In 1929, when the Hungarian author
Today, every one of us is part of countless invisible graphs, which underlie our social interactions, travel, internet and technology, science, and so much more.