Supplementary Material for Directed Percolation in Temporal Networks
I Implementation
II Generating synthetic temporal networks and the event graph
The synthetic temporal networks are created with some continuous-time stochastic process based on an underlying static network with a degree distribution of and excess degree distribution of . The event graph, directed acyclic graph of adjacency relationships between pairs events, can then be produced by iterating through all events and connecting it to all other events when happens less that time before that event and they share at least one node.
Reachability on the event graph will be preserved by removing some of the links so that the in/out-degree varies between 0 to 2 for every node [3] as long as the probability of adjacent events happening at exactly the same time is negligible. Practically, for every event in the event graph, we can remove directed links to all but the very first events for each of the two nodes involved in . This preserves connectivity in the event graph since all the events on the other end of the removed adjacency relationships would still be connected through one of the remaining links out-bound from as they share at least one node and the time difference is less than or equal to the original event. Note that if more than one adjacent events are happening at the same time and no other adjacent events happen before them, we would have to keep all of them to preserve connectivity.
Note that in practice it is often not necessary to explicitly generate the event graph to measure the quantities. It is possible to store the list of associated events for each node in the network sorted by time and generate adjacency relationships on the fly. This can also be combined with other techniques such as using probabilistic data structures for estimating out-component sizes to allow processing of temporal networks much larger than what is possible with the explicit solution [4].
II.1 Degree distribution of the reduced event graph
Let’s assume a vertex on the event graph, an event , that involves two nodes called and which just activated at time (Fig 1). The two nodes and have respectively and neighbor nodes, other than each other, over the static network.

Let’s also define as the probability that a process with inter-event time distribution can activate at least once in time after a random point in time. This can correspond to probability of one of the links in the underlying network activating within a time period of . Random variable is distributed according to the residual inter-event time distribution . Similarly, is the probability that a process with inter-event time distribution can activate at least once in time right after activation.
Probability of an event having out-degree of zero in the event graph can be calculated as:
(1) |
where and are the number of neighbours each of the nodes participating in the event has except for the connection between two nodes of the event in question, is a realisation of the inter-event time distribution of the network and is a realisation of the residual inter-event time distribution . Out-degree of an event is zero if and only if none of the adjacent links on the underlying network have an event within and the two nodes participating in the original event also don’t have any events between them within . The second term corresponds to the probability of the same link not activating and the first is the probability of all of the other incident links except for the original link not activating in .
The only case that an event on the event graph can have an out-degree equal to 2 (as shown on Fig. ) is that at least one of the neighbours of and one of the neighbours of activate before and before reactivation of the link between and . Activation of the link between and before at least one of the links on each side is activated (Fig. and ) would result in out-degree equal to zero or one depending on the value of and timing of the events.
Probability of having an out-degree equal to 2 can be calculated this way:
(2) | ||||
where , , and are defined as above. An event has an out-degree equal to 2 if and only if two mutually non-adjacent links adjacent to the link corresponding to the original event activated within and before the link corresponding to the original event is activated.
(3) |
Based on these equations, it is trivial to construct joint in- and out-degree distribution
(4) | |||
where is the probability mass function of excess degree for the static aggregate base network.
It is possible to construct the joint degree distribution generating function using the joint degree distribution itself
(5) |
and in- and out-degree and excess degree distribution generating functions
(6) | ||||
where is the mean in- and out-degree derived from
(7) |
Note that the in- and out-excess degree distribution generating functions we just derived ( and ) refer to excess in- and out-degree distribution of a random event in the event graph.
III Details of analytical derivation of critical exponents
To study properties of the event graph, we approximate it by a random directed graph with the same in- and out-degree distribution. The following sections are all based on this assumption. The validity of this assumption and the following results can be verified explicitly by empirically constructing temporal networks of different topologies and temporal dynamics and measuring scaling of quantities such as , , , or [2].
III.1 Control Parameter
The mean-field rate equation for occupation density in homogeneous occupation initial condition can be constructed as
(8) |
where is the excess out-degree distribution of events in the event graph. Using excess degree distribution captures the fact that in the random temporal model we are using, in- and out-degrees of events in the event graph are correlated and both are a function of degree of the event’s constituting nodes in the static base network. By defining and , Eq. 8 turns into with stationary solutions at , which represents the absorbing phase, and , which corresponds to the mean-field critical point.
An event graph can be presented, without any change in reachability of any event, so that no event has an in- or out-degree larger than two (as discussed in the beginning of this section) and can be written as and .
The phase transition at also complies with the previously know result of phase transition in random directed graphs with arbitrary degree distribution at [5].
III.2 Density scaling exponents
For large , Eq. 8 has one solution for active and absorbing phases and the critical threshold
(9) |
where as grows, approaches zero for and for the , i.e. asymptotically
(10) |
and
(11) |
which leads to
(12) |
III.3 Rapidity-reversal symmetry
The fact that survival of a component is measured using out-component of events in the event graph while occupation density is calculated by measuring in-component of all possibly infected nodes, hints at a symmetry in the system under time reversal. Consider -constrained event graph representation of temporal network and two sets events in bands of time units of time wide, namely and where is time of activation of event . Assuming where each member of appears in the out-component of at least one of the members of and where each member of appears in the in-component of at least one of the members of (which is to say, one of the members of ). Probability of survival at time can be estimates as the fraction of nodes in that can reach at least a node in , . Similarly, since in the homogeneous fully occupied case all the events in are occupied, the occupation density at time can be estimated as .
Under reversal of time the direction of the links in the event graph will revert which in turn causes switching of in- and out-component set of each node. In this scenario, occupation density is estimated by which is the same as probability of survival in the original case. Conversely, probability of survival is estimated by which is the same as occupation density in the original case. If the time-reverted event graph has the same likelihood as the original event graph, e.g. if , this leads to the identity
(13) |
which in turn, for models belonging to the DP class, leads to the celebrated rapidity-reversal symmetry:
(14) |
III.4 Mean component mass exponent
The generating function for distribution of out-component sizes is the solution to the system
(15) | ||||
and mean out-component size can be calculated as
(16) |
For where this results in a solution in form of
(17) | ||||
Keeping in mind the definition of control parameter and that (see Eq. 7), we can re-write as
(18) |
For the special case of random -regular networks we can prove that which give the result . More generally, to find exponent of a power-law asymptote of the form as for any random graph we can find the solution to
(19) | ||||
Under the condition that , the limit term is equal to zero, resulting in . Given the fact that, assuming probability of co-occurrence of adjacent events is negligible, the maximum out-degree of the event graph is 2, if the mean out-degree is above zero at , a power relation with exponent estimates mean component mass.
IV Alternative analogue for mean cluster mass
In classic DP, mean cluster mass is defined as the integration of the pair-connectedness function across all nodes and time. Based on how we established parallels between spatial dimensions and the base networks and a the possibility of defining pair-connectedness function as existence of a -limited time-respecting path between a pair of nodes at different times, this might translates more directly to the sum of time-length of all infections started from a random event, or in other words total duration of sickness for all people. This would also imply that the spreading processes start at random nodes and times, as opposed to starting at random events as we use in the manuscript. Values for mean cluster mass , as well as mean cluster volume and mean cluster lifetime for random 9-regular networks with Poisson lik activations are plotted in Fig. 2 for different values of .





V Description of the real-world temporal network data sets
Four real-world temporal networks were used for demonstrating the measurement of the quantities and phase transition. These are the same datasets used previously for developing the algorithmic method which form the backbone of the more empirical parts of the current manuscript [4].
The air transportation network dataset is a recording of 180 112 flights between 279 airports in the United States, gathered from the website of the The Department of Transportation’s Bureau of Transportation Statistics website in 2017 [6]. The public transportation network is the set of all 664 138 trips during a typical Monday in Helsinki in 2018, where a trip is one public transportation vehicle moving from one of the 6 858 bus, metro and ferry stations to the next [7]. The twitter dataset is a set of 266 179 671 mentions (counting replies) of 17 313 552 user handles [8]. Finally, the mobile phone call dataset is set of 324 576 400 phone calls between over 5 193 086 mobile phone subscribers [9]. A few thousand events were removed from the beginning of the twitter dataset to eliminate a weeks-wide gap in the gathered data.
The first two networks, air and public transportation networks, were processed as directed, delayed temporal networks where each event has a duration as well as a starting time where two events are adjacent if the second event starts after the duration of the event is finished and the tail node of the second event is the same as the head node of the first event, e.g. the first plane lands in the destination airport before the second one takes off from that airport. The waiting time then refers to the time between end of the first event to the beginning of the second one.
There is an argument for measuring waiting time in delayed temporal networks from the beginning of the first event for some processes such as disease spreading. For example, a disease that gets healed less than an hour after infecting someone has a very low chance of spreading through air travel where most trips take longer than that. That method was not used in this manuscript. The second pair of networks, twitter and mobile networks, were treated like undirected, instantaneous temporal networks.
The real-world networks show high degrees of temporal heterogeneity, daily/weekly patterns, peaks at spacial hours of the day or at special days of the year or local or global outages. Measuring representative values for static density and susceptibility for real-world networks would need special consideration. Our current method for measuring these quantities in the homogeneous, fully-occupied initial condition is dependent on the level of activity of the initial time of the dataset as well as existence of unlikely periods of very low or very high activity as a result of natural disasters, real-world happenings or simply failure of the measurement apparatus or the measured system. To average out any such outliers we split the original data into 64 equal time windows of time (for air and public transport) and (for mobile and twitter) where is the time window of the original dataset, each starting at a random point in time.
Distribution of mass, volume and lifetime for each event in the event graph can be seen Figs. 3, 4, 5 and 6 for Helsinki public transport, Air transport, Twitter and Mobile datasets respectively.




















VI Joint degree distribution in real-world temporal network event graphs
Symmetry of the joint in- and out-degree distribution of the event graph () was discussed as a condition for under a mean-field assumption of connectivity. While real-world networks often have correlations and inhomogeneities that affect connectivity, it is still interesting to verify the validity of this condition in real-world networks.
Observation of joint in- and out-degree of 100 000 random events of the event graphs for the Mobile and Twitter networks, the two largest real-world systems studied, show degree distributions (degrees 0 to 2) estimated at:
(20) |
and
(21) |
respectively at and .
References
- Badie-Modiri et al. [2021a] A. Badie-Modiri, A. K. Rizi, M. Karsai, and M. Kivelä, Source code and for ”Directed Percolation in Temporal Networks” and ”Directed Percolation in Random Temporal Network Models with Heterogeneities” (2021a), available at https://doi.org/10.5281/zenodo.5570746.
- Badie-Modiri et al. [2021b] A. Badie-Modiri, A. K. Rizi, M. Karsai, and M. Kiveä, Directed percolation in random temporal network models with heterogeneities, arXiv:2110.07698 (2021b).
- Mellor [2017] A. Mellor, The temporal event graph, Journal of Complex Networks 6, 639 (2017).
- Badie-Modiri et al. [2020] A. Badie-Modiri, M. Karsai, and M. Kivelä, Efficient limited-time reachability estimation in temporal networks, Phys. Rev. E 101, 052303 (2020).
- Newman et al. [2001] M. E. J. Newman, S. H. Strogatz, and D. J. Watts, Random graphs with arbitrary degree distributions and their applications, Physical review E 64, 026118 (2001).
- Bureau of Transportation Statistics [2017] Bureau of Transportation Statistics, Bureau of transportation statistics website (2017).
- Kujala et al. [2018] R. Kujala, C. Weckström, R. K. Darst, M. N. Mladenović, and J. Saramäki, A collection of public transport network data sets for 25 cities, Scientific data 5, 180089 (2018).
- Yang and Leskovec [2011] J. Yang and J. Leskovec, Patterns of temporal variation in online media, in Proceedings of the fourth ACM international conference on Web search and data mining (ACM, 2011) pp. 177–186.
- Karsai et al. [2011] M. Karsai, M. Kivelä, R. K. Pan, K. Kaski, J. Kertész, A.-L. Barabási, and J. Saramäki, Small but slow world: How network topology and burstiness slow down spreading, Physical Review E 83, 025102(R) (2011).