<figure><img src="image_1.png" /></figure>

HAL
open science

# The multilayer temporal network of public transport in Great Britain

Riccardo Gallotti, Marc Barthelemy

<figure><img src="image_2.png" /></figure>

## To cite this version:

Riccardo Gallotti, Marc Barthelemy. The multilayer temporal network of public transport in Great Britain. Scientific Data, 2015, 2, pp.140056. 10.1038/sdata.2014.56. cea-01334230v2

HAL Id: cea-01334230

https://cea.hal.science/cea-01334230v2

Submitted on 3 Oct 2022

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_3.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
OPEN

SUBJECT CATEGORIES

» Complex networks

» Information technology

» Civil engineering

» Geography

Received: 14 October 2014

Accepted: 02 December 2014

Published: 6 January 2015

# The multilayer temporal network of public transport in Great Britain

Riccardo Gallotti & Marc Barthelemy

Despite the widespread availability of information concerning public transport coming from different sources, it is extremely hard to have a complete picture, in particular at a national scale. Here, we integrate timetable data obtained from the United Kingdom open-data program together with timetables of domestic flights, and obtain a comprehensive snapshot of the temporal characteristics of the whole UK public transport system for a week in October 2010. In order to focus on multi-modal aspects of the system, we use a coarse graining procedure and define explicitly the coupling between different transport modes such as connections at airports, ferry docks, rail, metro, coach and bus stations. The resulting weighted, directed, temporal and multilayer network is provided in simple, commonly used formats, ensuring easy access and the possibility of a straightforward use of old or specifically developed methods on this new and extensive dataset.

<table><tr><td>Design Type(s)</td><td>observation design • data integration objective</td></tr><tr><td>Measurement Type(s)</td><td>public transport data</td></tr><tr><td>Technology Type(s)</td><td>data transformation</td></tr><tr><td>Factor Type(s)</td><td></td></tr><tr><td>Sample Characteristic(s)</td><td>anthropogenic habitat • United Kingdom</td></tr></table>
## Background & Summary

Public transport is a fundamental service, provided in every country at various scales, and which answers to the mobility demand of a large share of the population. The quality of public transport systems directly influences the citizens' quality of life, by reducing travel-times, promoting social fairness and by improving the air quality in metropolitan areas. Increased public transportation investments also lead to significant economic growth¹. The increasing complexity of these systems and the lack of proper tools for their analysis, render the managing tasks of transportation agencies harder. This is particularly true for large multi-modal systems, as single agencies often manage different and separated parts of the network creating hard organizational boundaries for both data handling and optimization. In addition, from the users' point of view, the enormous amount of information available is such that navigation in cities and planning of individual trajectories require now services offered by major information technology companies.

Recently, network studies provided new approaches for the analysis of spatial², temporal³ and multilayer networks⁴,⁵. Public transport networks represent a paradigmatical example of all these three categories (see Fig. 1 for a visualization obtained with the tool⁶), and we can gain a new understanding of these systems with these new methods⁷,⁸. A large number of studies have been made by considering a single transportation mode only⁹⁻²⁴ and a few studies only focused on multimodal aspects, characterizing the resilience and navigability⁷ or the temporal synchronization²⁵ of transport networks at a urban level (see Fig. 2 for an illustration in London).

In order to perform an extensive and comprehensive analysis at both urban and inter-urban levels, we integrate timetable information for land and water transport, obtained from a rich open-data source, the United Kingdom's National Public Transport Data Repository (NPTDR—Data Citation 1, date of access: 02/10/2014), together with schedules of all non-stop domestic flights in the United Kingdom provided by Innovata LLC²⁶. This integration gives us complete knowledge of British public transport, all modes included.

We use the multilayer network framework to identify the multi-modal features of this integrated transport system, and associate to each transportation mode a separate layer. We then aggregate stops associated to different modes into single network's nodes by using a hierarchical coarse-graining procedure that integrates and corrects the grouping information provided by the National Public Transport Access Nodes (NAPTAN) scheme²⁷ used by the NPTDR (date of access: 06/06/2014). A given node then exists in different layers, and if it is used for different transport modes, the modal interconnection is represented by an inter-layer edge with a weight representing the walking time between the stops.

For all modes, the timetable information provides at each stop departure and arrival times $t_{dep}$ and $t_{arr}$. As it is usually done in temporal networks³, we associate to each ride from a node $a$ to its consecutive neighbor $b$, a directed edge and instantaneous events $t=t_{dep}$ and $t=t_{arr}$ for departure and arrival times of this ride. This edge is then considered as being active during this trip and its weight is given by the travel-time $dt=t_{arr}-t_{dep}$. In addition, we also define a static (non-temporal) network, where the weight of each active edge is the minimal travel-time among all events that happened along it.

<figure><img src="image_4.png" /></figure>

**Figure 1.** National public transport network in Great Britain. The dataset allows the study of the characteristics of the public transport network at a national scale: the inter-urban connections are made through Rail, Air and Coach layer. Air and Ferry connect mainland with the Northern Isles and the Hebrides. Metro and Bus are not represented here. (Rendered with MuxViz⁶).
<figure><img src="image_5.png" /></figure>

**Figure 2.** Urban public transport network in London. In general, the most widespread mode of transport at the urban scale is the Bus. Other layers like Ferry and Coach are sometimes present, but Rail and, when available, Metro represent the most viable alternatives to Buses for intra-urban trajectories⁸. (Rendered with MuxViz⁶).

In order to ensure easy access to the data, we write the static network information in Comma Separated Values files, using standard format of network theory: a file contains the list of nodes and another one contains the list of edges. The ≈270 K nodes distributed over 6 layers of the resulting network are geo-referenced and associated to the original NaPTAN metadata (see Table 1 for a summary). The ≈470 K intra-layer and inter-layer edges can be easily read from the multilayer edge-list. The temporal characteristics of the transport network are then listed in a separate file describing the ≈130 M events happening during a week of service in Great Britain during October 2010. Because of the dimension of the event list and the lack of established standard, we use a format optimizing the space requirements for this particular case.

# Methods

## Original datasources

Land and water public transport timetables are provided by the NPTDR (Data Citation 1) under Open Government licence. Snapshots of every journey are recorded for all services running in Great Britain (that is, England, Scotland and Wales) during a full week in October for years ranging between 2004 and 2011. We choose the year 2010 as a working dataset as it was the most recent, fully consistent one (the more recent timetables are not updated for some areas in 2011). The raw files contain the information available in the travel-lines' web sites and call-centres during the selected week. For road transport, transportation agencies take into account average traffic conditions at different hours and days in the design of timetables, and these data then contain implicitly congestion effects. The timetable information is provided within a resolution of the minute which we will therefore use in our dataset.

In the NPTDR data, the modes covered and identified are: bus, coach, (national) rail, ferry and metro (which includes underground, tram, light rail and non-national rail trains). All routes are originally referenced to stops defined using the NaPTAN scheme²⁷ (date of access: 06/06/2014). In this scheme, every UK rail or metro station, coach terminal, airport, ferry terminal, bus stop or taxi rank is associated to at least one Stop Point. Each stop point is geo-referenced, has a detailed toponym and is identified by an ID denominated ATCOcode. For all bus stops, which represent the large majority of stops, the first three characters of the ATCOcodes can be linked to the Administrative Areas. In order to get a complete picture for all transportation modes, we use detailed schedules of all non-stop UK domestic flights, provided by Innovata LLC²⁶ for the week of 18–24 October 2010 (Innovata kindly accepted to grant us the rights of sharing these timetables and licensing this derived dataset as Open Data). Each of these flights has been associated to the Stop Points of the arrival and departure airport (and to a specific terminal whenever these were present). This was possible as each Stop Point contains in its ATCOcode the International Air Transport Association (IATA) code. Not all Stop Points that are defined are actually used. In our dataset, only those present in the timetables have been considered active and have therefore been taken into account.
<table><caption>**Table 1.** Dataset dimensions.</caption><thead><tr><td>File</td><td>Lines</td><td>Header</td><td>Size</td></tr></thead><tbody><tr><td>layers.csv</td><td>7</td><td>Yes</td><td>76B</td></tr><tr><td>nodes.csv</td><td>267.032</td><td>Yes</td><td>12 MB</td></tr><tr><td>edges.csv</td><td>475.503</td><td>Yes</td><td>14 MB</td></tr><tr><td>events.txt</td><td>465.216</td><td>No</td><td>893 MB</td></tr></tbody></table>

## Timetables correction

The original NPTDR data are not free from errors. For this reason, the timetables underwent a data-cleaning process:

* A specific error was found in the Rail timetables. For some reasons, some unrecorded times were replaced with a '00000000' string, which also represents a correct stop time at midnight. When an error happens at station B arrival, following station A, the passage time at B is estimated by adding to the passage time at A the average of travel times recorded for all other correct A-B trips. This solution solved the problem almost entirely.

* Further inconsistent stop times have been corrected by temporal interpolation whenever possible. This temporal interpolation assumes for instance that the travel-time (when known) $t_{AC} = t_C - t_A$ between A and C in a A-B-C trajectory has to be split in $t_{AC} = t_{AB} + t_{BC}$ where $t_{AB}/t_{BC} = d_{AB}/d_{BC}$, where $d_{IJ}$ is the euclidean distance between I and J. More specifically, many inconsistencies were found in bus stop times: they have been considered wrong whenever two following stops are separated by a temporal interval of more than 2 h (this also applies to the cases when a stop occurs at a time which does not respect time causality). When interpolation was not possible for a given event, we excluded it from the dataset. The fraction of events excluded under this rule is negligible when compared to the overall number of time events.

## Coarse graining procedure

Stop points are then organized in Stop Areas representing facilities (Airports, Bus/Metro/Coach/Railway Stations) or possible interchange points. Also Stop Areas are geo-referenced and identified by an ATCOcode (characterized by the character 'G' at position four in the code). These Stop Areas have been taken as a basis for defining a multilayer network from the timetable data. Probably because of the bottom-up data entry process used for NaPTAN, the Stop Areas were not homogeneously defined. In particular, the spatial size can vary significantly and in some cases groups of stops can cover a distance of order 10 kilometres or more. In order to define consistently the nodes in the multilayer network where the inter-layer edges represent inter-modal connections, we define inter-modal exchange nodes by correcting inconsistent NaPTAN Stop Areas using as a reference parameter a walking distance $wd=500$ meters, used here as the maximal distance allowed to reach a bus stop by walking. We focused on bus stops as we identified them as the main source of errors, and we therefore removed bus stops from groups when they were out of the walking distance range and included them when they were within that range. Finally, the procedure aimed to maintain the hierarchy defined by the NaPTAN scheme: Air>Ferry>Rail>Metro>Coach>Bus and in the coarse graining we took into account this ranking where Airports are the most important locations and Bus stops the less important.

More precisely, this data-cleaning and aggregation procedure follows the steps listed hereafter:

1. the Centres of an Area are identified by their latitude and longitude in the NaPTAN dataset. If not all Points are within a distance $wd$ from the Centre, the centre of mass of all Stop Points is computed as the point with latitude and longitude equal to the mean value of all Points latitudes and longitudes respectively. If all Points are then within a distance $wd$ from the centre of mass, it is used as the new Centre of the Area.

2. Points where Air, Ferry, Rail, Metro and Coach stops occur are always kept in the Area, and Bus stop Points further than $wd$ from the Centre are removed;

3. Areas containing only Bus stops Points are corrected by iteratively removing the farthest stop from the centre and recalculating the centre of mass, until they become contained in a circular area of radius $wd/2$ (thus implying a maximal distance between two points in this area less than $wd$);

4. Airport Stop Points and Areas are joined together if they share the same IATA code;

5. All Airport Stop Points are 'promoted' to Areas;

6. The Heathrow Airport Stop Area is reconstructed with a specific rule (lines 777-790 of 1_stops.py in Data Citation 2) as the Stop Area was incorrectly defined in the original dataset;

7. Using the hierarchy mentioned above, all Areas include other Areas and non-bus stops Points of lower rank within a distance $wd$ from its Centre (the distance between Areas is defined as the distance between their centres);

8. All remaining non-bus stops Points are 'promoted' to Areas;
9. Rail, Metro and Ferry Areas of same rank are merged if their distance is under *wd* (Rail) or *wd/2* (Ferry, Metro). Here the threshold *wd/2* is chosen to avoid joining together consecutive Stops of Tube and Ferry lines in London;

10. All Areas can absorb a Bus stop Point if it is within a distance *wd/2*. In case of conflict, the Point is assigned to the closest Area;

11. Areas containing only one Point are 'declassed' to Points;

12. A stop Point can absorb lower rank Areas/Points if it is within a distance *wd/2* and thus becoming an Area (Coach and Bus Stops cannot absorb in this step);

13. We assign to each Area a representative Point, chosen at random between those with the higher rank;

14. We assign an areacode to each Area which corresponds to the first 3 digits of the ATCOcode of the majority of its bus stops. These 3 digits are associated to the Administrative Area in the NaPTAN scheme.

## Defining the network

The Areas defined by the procedure described above comprise nodes connecting the different layers of the multilayer network. The distance used for estimating inter-layer weights is taken as the average distance between all Points of the first layer and all Points of the second layer within these Areas. This walking time is obtained from this distance using a standard walking speed of 5 km/h and converted in minutes. In our dataset, time is described by an integer and in order to avoid occasional divide-by-zero errors, we added the minimal amount of 1 min to these connection times, which may reflect the time needed for getting off the vehicle, finding the vehicle of the following ride and getting on that second vehicle. We also took into account the 2 h time requested for airport screening procedures, check-ins and luggage retrieval. These 2 h of connection times are added to any connection towards the Air layer and 30 min are added to all connections from the Air layer.

Both the NAPTAN and the Innovata data use a format where each route is considered as active during certain days of the considered weeks. We prefer to define temporal networks by translating directly this information into the existence or not of links between two nodes at a given moment measured in minutes from the 00:00 of Monday. This choice does not optimize memory space but allows for an extremely straightforward reading of the data. Not all studies need the temporal network information, and we therefore also defined a weighted static network, where we associate to each edge a weight given by the minimal travel-time recorded during the considered week. We impose this minimal travel-time to be at least of one minute, again to avoid divide-by-zero errors for times defined with a 1 min precision. We note that, because of the coarse-graining method used for defining nodes, self loop edges are present in our network as some routes could pass by more than one stop that have then been aggregated in the same node.

## Code availability

In order to ensure the replicability and reproducibility of our dataset, we share all codes that were developed for producing this dataset. The software is written in Python 2.7 and can be found in the repository indicated as Data Citation 2. The input files needed are the air timetables provided to us by Innovata LLC, which are included in our dataset (Data Citation 3) and the 2010 snapshot the NPTDR data (Data Citation 1). In particular:

* the folder identified in the code as 'NPTDRTimetablesPath' is contained in all the unzipped version of the files present in the folder October-2010/Timetable Data/CIF/National;

* the folder 'NaPTANPath' contains the file present in the.zip file October-2010/NaPTANcsv.zip;

* the folder 'INNOVATAtimetablesPath' contains the file UKDOMESTICOCT10.csv that accompanies our dataset (Data Citation 3).

The workflow consists in the following steps:

**0angiometric.py** Correct the Rail timetables from the '0000000' error. It produces a corrected copy of the timetable in the original .CIF format, used in step 1.

**1_stops.py** Recognizes active stops, performs the stops' coarse-graining, associates nodes with areacode, corrects inconsistencies in all timetables, computes intra-layer distances. It produces a set of intermediate files (nodes list, events list, intra-layer edges list) used for the steps 2 and 3.

**2 links.py** Sorts and rewrites the events list, computes the minimal traveltime for all edges. The output is a second version of the events list and a intra-layer edges list, used in step 3.

**3 finalformat.py** Computes the inter-layer traveltime, corrects the minimal traveltime when 0. The output is the final format of the dataset.

The file layers.csv is simply typed in a text editor. Several parameters can be easily modified in this workflow. The walking distance *wd* is defined in step 1. Walking speed, flight connection times, minimal connection time and the lower threshold to the minimal traveltime are defined in step 3. In addition, the same workflow can be also applied for all years where the NPTDR data are available (2004–2011).

## Data Records

This dataset is stored as a single zip file at the Dryad Digital Repository (Data Citation 3). It describes the public transport network of Great Britain by using a multilayer node-list and edge-list, where each layer is
associated to a single transport mode. Each node is geo-referenced, thus defining a spatial network, and is associated to a wide list of administrative meta-data. For each edge, we indicate the minimal travel-time in minutes. In the case of inter-layer edges, their weight is defined as the walking time needed for the inter-modal connection. For each intra-layer edge, we also specify a list of temporal events representing the vehicles' rides along the edges, with origin time and travel duration expressed in minutes with a precision of one minute. In multilayer networks, each node may have several 'copies' in different layers. For that reason, nodes are identified by two numbers, one specifying the node itself, and another the layer where it belongs. As a consequence, edges are identified by four numbers, two for the origin and two for the destination (node and layer). The ordering of the fields in the edge-list has been chosen to conform to the tensorial notation widely used for this type of networks. There is no established standard format for the temporal event list, and we therefore decided to use a format, derived from the idea of adjacency lists, which has been specifically adapted to this dataset.

All files are plain ASCII text files. Each row represents an item and for all files (except the file events.txt) the number of fields and their order is the same. Conversely, a non-standard format has been used for encoding events information (see below).

**layers.csv** In this network, each layer represents a mode of transport.

* **layer**: numerical id for each layer;

* **layerLabel**: mode of transport associated to the layer.

**nodes.csv** The same node, identified by the same *nodeid*, may exist in different layers and is represented once in each layer where it appears.

* **nodeid**: numerical id for each node;

* **layerid**: layer when the node appears;

* **lat**: latitude;

* **lon**: longitude;

* **areacode**: using this code one may link node to the administrative area information contained in 'Admin Areas.csv' (where this key is called ATCOcode) and then to 'Travel Region.csv' through the *traveline Region ID* key;

* **atcocode**: the ATCOcode of a stop Area if its 4th character is 'G', or of a stop Point if is '0'. With this code one may link nodes to the metadata of 'Stops.csv' for Points and 'Groups.csv' for Areas.

**edges.csv** Edges are directed and weighted. They can be either intra-layer, between different nodes in the same layer, or inter-layer, between the same node in different layers. We associate a weight to each edge which is given by the minimal travel time from the origin to the destination, in minutes. Edges are listed following the layers' hierarchy.

* **ori_node**: origin node;

* **des_node**: destination node;

* **oriLayer**: origin layer;

* **desLayer**: destination layer;

* **minutes**: minimal travel time between origin and destination in minutes;

* **km**: the euclidean distance between origin and destination in kilometres.

**events.txt** Edges are listed following the layers' hierarchy. The bus events are by far the most numerous (more than 90% of the total), and reading can be interrupted at the first edge belonging to this layer whenever the bus information is not needed. The format for this file is the following:

ori_node, des_node, oriLayer, desLayer, t1, dt1, t2, dt2,..., tN, dtN

It would have been extremely space demanding to write this file as a simple event list, and for this reason this file is not written as a standard .csv file: we still use commas as delimiters for each line of the text, but the number of columns is different in each row. We decided to use the same structure of adjacency lists and list the events as a succession in the same row. Each row represents an edge, described in the first 4 fields. The subsequent fields are a list of events. Each edge has a different number of events, and therefore each line a different number of fields. Each event *i* is identified by two values, *t*<sub>*i*</sub> and *dt*<sub>*i*</sub>, and represents a ride starting at time *t*<sub>*i*</sub> and of duration *dt*<sub>*i*</sub>. Both times are in minutes. *t*<sub>*i*</sub> is defined as minutes starting from the 00:00 of Monday.

## NaPTAN and NPTG metadata

We include the original files from the National Public Transport Access Node (NaPTAN) and National Public Transport Gazetteer (NPTG). We encourage the reader to refer to the comprehensive guide 'naptanschemaguide-2.5-v0.67.pdf' that can be found on the NaPTAN website (http://www.naptan.org.uk/schema/schemas.htm. Download link: http://81.17.70.199/naptan/schema/2.5/doc/NaPTANSchemaGuide-2.5-v0.67.pdf, date of access 19/12/2014). The list of fields for each of these files is as follows:
**Stops.csv.** ATCOCode, GridType, Easting, Northing, Lon, Lat, CommonName, Identifier, Direction, Street, Landmark, NatGazID, NatGazLocality, ParentLocality, GrandParentLocality, Town, Suburb, StopType, BusStopType, BusRegistrationStatus, RecordStatus, Notes, LocalityCentre, SMSNumber, LastChanged.

**Groups.csv.** GroupID, GroupName, Type, GridType, Easting, Northing, Lon, Lat, LastChanged.

**Admin Areas.csv.** Admin Area ID, Admin Area Name, Traveline Region ID, Country, ATCO Code, Call Centre ID, Date of Issue, Issue Version.

**Travel Region.csv.** Traveline Region ID, Region Name, Primary URL, Secondary URL, Tertiary URL, Date of Issue, Issue Version, JW Version.

## Innovata LLC timetables

To ensure the reproducibility of our dataset, we include the original timetable as provided by Innovata LLC²⁶.

**UKDOMESTICOCT10.csv.** Mktg Al, Op Al, Orig, Dest, Kilometers, Flight, Stops, Equip, Seats, Dep Term, Arr Term, Dep Time, Arr Time, Block Mins, Arr Flag, Op Days, Ops/Week, Seats/Week.

## Technical Validation

The reliability of the spatial and temporal information largely depends on the reliability of the source data provided by transport agencies to the NPTDR. Further limits come from the multilayer aspects of the network that we have defined. The absence of other data sources to compare our results with, limit our possibilities for validating the technical quality of our dataset. For this reason, we propose in the Supplementary File a statistical characterization of all quantities represented in the dataset. We use such an analysis as a 'sanity check' to support the correctness of the information provided. In addition, we study the characteristics of time-respecting shortest paths through London, defined as the quickest journeys along a sequence of connections with non-decreasing times³ and studied by us in a recently published paper⁸. The apparent correctness of the large majority of these paths provide further support about the reliability of the temporal events and about our definition of the multilayer network.

### Spatial aspects

We verify the consistency of the coarse-graining procedure, nodes position Stop Area centres and Stop Points by visualizing them on a satellite map. The positioning was always found reasonable at that scale (≈500 meters). For this reasons, we are rather confident that in the original files, latitude, longitude, easting and northing fields are correct. From these coordinates, we measured intra-layer distances, whose values appear to be sensible. The shape of the probability distribution also correctly matches the walking distance constraint that we have introduced (see the Supplementary File). In the Supplementary File, one can also observe that the final node positions reasonably cover the shape of Great Britain, and that there are no apparent transcription errors. From these coordinates, we compute edges lengths, whose values fall in reasonable ranges for each layer (note that a set of relatively short (< 100 kms) edges are present in the air layer: they are mostly associated with low capacity flights or travels among the Orkney Islands).

### Temporal aspects

In our procedure, we correct some errors (manifestly wrong or impossible times), directly enhancing the quality of the data the original source. Nevertheless, from the statistical analysis we perform in the Supplementary File, the most relevant limit of the dataset appears as being the low reliability of short traveltimes. Indeed, a fraction of 1% of bus layer's edges have a maximum travel speed (edge length/minimal traveltime) larger than 90 km/h. The most extreme values of these velocities correspond to extremely short traveltimes. This issue is inherited from the original NPTDR database and is a consequence of the low precision of bus timetables. This problem is reflected on the events data and magnified if one consider the maximum travel speed (thus our choice of a lower bound of 1 min for the minimal traveltime, to avoid divisions by zero).

Although traveltimes on single edges are not totally reliable, these errors become less relevant when computing the total time along a trajectory. The longer the trajectory and the more negligible the error is. In particular, we verified that in London, the distribution of speeds for short time-respecting paths is short tailed, and with a relatively reasonable extreme value (≈60 km/h), already for extremely short trajectories of distances in the interval [500, 750] m.

### Multilayer aspects

In the Supplementary File, we check that the choice for the walking distance between different layers is reasonable. Naturally, small errors consequent to the coarse-graining procedure are unavoidable, but most of the more complex connection sites (airports, large stations) were already correctly defined in the NaPTAN scheme. This has been verified by visualizing the Stop Points on a satellite map. Clearly, taking walking times proportional to euclidean distances is only an approximation as it does not take into account the actual shape of the connection facilities. In order to check the overall quality of the connection definitions, we performed a visual comparison between time-respecting shortest paths through London. We took as a starting time Monday at 08:00, and compared the results given for the
same origin and destination in the Google Maps website. Although the results always presented some
deviations, probably because of the differences between data sources and choices made by Google for
computing the shortest path along street and transport networks, trajectories were similar for large
portions to those obtained from our data (with the option 'less walking' taken).

References

1. Weisbrod, G., Cutler, D. & Duncan, C. *Economic Impact of Public Transportation Investment—2014 update* (*American Public Transportation Association*, 2014).

2. Barthelemy, M. Spatial networks. *Phys. Rep.* **499**, 1–101 (2011).

3. Holme, P. & Saramäki, J. Temporal networks. *Phys. Rep.* **519**, 97–125 (2012).

4. Kivelä, M. et al. Multilayer networks. *J. Complex Netw.* **2**, 203–271 (2014).

5. Boccaletti, S. et al. The structure and dynamics of multilayer networks. *Phys. Rep.* **544**, 1–122 (2014).

6. De Domenico, M., Porter, M. A. & Arenas, A. MuxViz: a tool for multilayer analysis and visualization of networks. *J. Complex Netw.* doi:10.1093/comnet/cnu038 (2014).

7. De Domenico, M., Solé-Ribalta, A., Gomez, S. & Arenas, A. Navigability of interconnected networks under random failures. *PNAS* **111**, 8351–8356 (2014).

8. Gallotti, R. & Barthelemy, M. Anatomy and efficiency of urban multimodal mobility. *Sci. Rep.* **4**, 6911 (2014).

9. Latora, V. & Marchiori, M. Is the Boston subway a small-world network? *Phys. A* **314**, 109–113 (2001).

10. Sen, P. et al. Small-world properties of the indian railway network. *Phys. Rev. E* **67**, 036106 (2003).

11. Seaton, K. A. & Hackett, L. M. Stations, trains and small-world networks. *Phys. A* **339**, 635–644 (2004).

12. Sienkiewicz, J. & Holyst, J. A. Statistical analysis of 22 public transport networks in Poland. *Phys. Rev. E* **72**, 046127 (2005).

13. Angeloudis, P. & Fisk, D. Large subway systems as complex networks. *Phys. A* **367**, 553–558 (2006).

14. Kurant, M. & Thiran, P. Extraction and analysis of traffic and topologies of transportation networks. *Phys. Rev. E* **74**, 036114 (2006).

15. Kurant, M. & Thiran, P. Layered complex networks. *Phys. Rev. Lett.* **96**, 138701 (2006).

16. Li, W. & Cai, X. Empirical analysis of a scale-free railway network in China. *Phys. A* **382**, 693–703 (2007).

17. Xu, X., Hu, J., Liu, F. & Liu, L. Scaling and correlations in three bus-transport networks of China. *Phys. A* **374**, 441–448 (2007).

18. Chen, Y.-Z., Li, N. & He, D.-R. A study on some urban bus transport networks. *Phys. A* **376**, 747–754 (2007).

19. Lee, K., Jung, W.-S., Park, J. S. & Choi, M. Y. Statistical analysis of the metropolitan Seoul subway system: network structure and passenger flows. *Phys. A* **387**, 6231–6234 (2008).

20. Dorbritz, R. & Weidmann, U. Stability of public transportation systems in case of random failures and intended attacks-a case study from Switzerland. *Systems Safety 2009. Incorporating the SaRS Annual Conference, 4th IET Int. Conf.*, 1–6 (2009).

21. von Ferber, C., Holovatch, T., Holovatch, Y. & Palchykov, V. Public transport networks: empirical analysis and modeling. *Eur. Phys. J. B* **68**, 261–275 (2009).

22. Derrible, S. & Kennedy, C. The complexity and robustness of metro networks. *Phys. A* **389**, 3678–3691 (2010).

23. Roth, C., Kang, S. M., Batty, M. & Barthelemy, M. A long-time limit for world subway networks. *J. R. Soc. Interface* **6**, 1–8 (2012).

24. Legara, E. F., Monterola, C., Lee, K. K. & Hung, G. G. Critical capacity, travel time delays and travel time distribution of rapid mass transit systems. *Phys. A* **406**, 100–106 (2014).

25. Coffey, C., Nair, R., Pinelli, F., Pozdnoukhov, A. & Calabrese, F. Missed connections: quantifying and optimizing multi-modal interconnectivity in cities. *Proc. of the 5th ACM SIGSPATIAL International Workshop on Computational Transportation Science* 26–32 (2012).

26. Innovata LLC, http://www.innovata-llc.com/.

27. National Public Transport Access Node (NaPTAN), http://www.dft.gov.uk/naptan/.

Data Citations

1. Transport Direct. data.gov.uk http://data.gov.uk/dataset/nptdr (2010).

2. Gallotti, R. & Barthelemy, M. figshare. http://dx.doi.org/10.6084/m9.fishshare.1249862 (2014).

3. Gallotti, R. & Barthelemy, M. Dryad. http://dx.doi.org/10.5061/dryad.pc8m3 (2014).

Acknowledgements

The authors are supported by the European Commission FET-Proactive project PLEXMATH (Grant No. 317614). We thank Manlio De Domenico, Mikko Kivelä and Mason Porter for useful feedbacks on the format of this dataset.

Author Contributions

R.G. designed the dataset, processed the data and wrote the paper. M.B. designed the dataset and wrote the paper.

Additional information

Supplementary information accompanies this paper at http://www.nature.com/sdata

Competing financial interests: The authors declare no competing financial interest.

**How to cite this article:** Gallotti, R. and Barthelemy, M. The multilayer temporal network of public transport in Great Britain. *Sci. Data* **2**:140056 doi: 10.1038/sdata.2014.56 (2015).

<figure><img src="image_6.png" /></figure>

This work is licensed under a Creative Commons Attribution 4.0 International License. The
images or other third party material in this article are included in the article's Creative

Commons license, unless indicated otherwise in the credit line; if the material is not included under the
Creative Commons license, users will need to obtain permission from the license holder to reproduce the
material. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0

Metadata associated with this Data Descriptor is available at http://www.nature.com/sdata/ and is released
under the CC0 waiver to maximize reuse.