2SCENT: An Efficient Algorithm to Enumerate All Simple Temporal Cycles

In interaction networks nodes may interact continuously and repeatedly. Not only which nodes interact is important, but also the order in which interactions take place and the patterns they form. These patterns cannot be captured by solely inspecting the static network of who interacted with whom and how frequently, but also the temporal nature of the network needs to be taken into account. In this paper we focus on one such fundamental interaction pattern, namely a temporal cycle. Temporal cycles have many applications and appear naturally in communication networks. In financial networks, on the other hand, the presence of a temporal cycle could be indicative for certain types of fraud, and in biological networks, feedback loops are a prime example of this pattern type. We present 2SCENT, an efficient algorithms to find all temporal cycles in a directed interaction network. 2SCENT consist of a non-trivial temporal extension of a seminal algorithm for finding cycles in static graphs, preceded by an efficient candidate root filtering technique which can be based on Bloom filters to reduce the memory footprint. We tested 2SCENT on six real-world data sets, showing that it is up to 300 times faster than the only existing competitor and scales up to networks with millions of nodes and hundreds of millions of interactions. Results of a qualitative experiment indicate that different interaction networks may have vastly different distributions of temporal cycles, and hence temporal cycles are able to characterize an important aspect of the dynamic behavior in the networks. PVLDB Reference Format: Rohit Kumar and Toon Calders. 2SCENT: An Efficient Algorithm to Enumerate All Simple Temporal Cycles. PVLDB, 11(11): 1441-1453, 2018. DOI: https://doi.org/10.14778/3236187.3236197 The extended version of this paper is available as [13]. Implementation of all algorithms can be found at https://github.com/rohit13k/CycleDetection. Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Articles from this volume were invited to present their results at The 44th International Conference on Very Large Data Bases, August 2018, Rio de Janeiro, Brazil. Proceedings of the VLDB Endowment, Vol. 11, No. 11 Copyright 2018 VLDB Endowment 2150-8097/18/07. DOI: https://doi.org/10.14778/3236187.3236197

[1]  J. Ponstein,et al.  Self-Avoiding Paths and the Adjacency Matrix of a Graph , 1966 .

[2]  S. Yau,et al.  Generation of all Hamiltonian Circuits, Paths, and Centers of a Graph, and Related Problems , 1967, IEEE Transactions on Circuit Theory.

[3]  V. Murti,et al.  Enumeration of all circuits of a graph , 1969 .

[4]  Krishna P. Gummadi,et al.  On the evolution of user interaction in Facebook , 2009, WOSN '09.

[5]  Evgenios M. Kornaropoulos,et al.  Fast approximation of betweenness centrality through sampling , 2014, Data Mining and Knowledge Discovery.

[6]  Kwang-Hyun Cho,et al.  Identification of feedback loops in neural networks based on multi-step Granger causality , 2012, Bioinform..

[7]  Donald B. Johnson,et al.  Finding All the Elementary Circuits of a Directed Graph , 1975, SIAM J. Comput..

[8]  Toon Calders,et al.  Finding simple temporal cycles in an interaction network , 2017, TD-LSG@PKDD/ECML.

[9]  Toon Calders,et al.  Information Propagation in Interaction Networks , 2017, EDBT.

[10]  Toon Calders,et al.  Maintaining Sliding-Window Neighborhood Profiles in Interaction Networks , 2015, ECML/PKDD.

[11]  Aristides Gionis,et al.  Discovering Dynamic Communities in Interaction Networks , 2014, ECML/PKDD.

[12]  Christian Staudt,et al.  Approximating Betweenness Centrality in Large Evolving Networks , 2014, ALENEX.

[13]  Narsingh Deo,et al.  On Algorithms for Enumerating All Circuits of a Graph , 1976, SIAM J. Comput..

[14]  Jari Saramäki,et al.  Temporal motifs in time-dependent networks , 2011, ArXiv.

[15]  Jari Saramäki,et al.  Temporal Networks , 2011, Encyclopedia of Social Network Analysis and Mining.

[16]  Jure Leskovec,et al.  Motifs in Temporal Networks , 2016, WSDM.

[17]  Jürgen Kurths,et al.  Evidence for a bimodal distribution in human communication , 2010, Proceedings of the National Academy of Sciences.

[18]  Aristides Gionis,et al.  Temporal PageRank , 2016, ECML/PKDD.

[19]  Roberto Grossi,et al.  Optimal Listing of Cycles and st-Paths in Undirected Graphs , 2012, SODA.

[20]  Richard C. Wilson,et al.  Evaluating balance on social networks from their simple cycles , 2016, J. Complex Networks.

[21]  Robert E. Tarjan,et al.  Enumeration of the Elementary Circuits of a Directed Graph , 1972, SIAM J. Comput..

[22]  Cecilia Mascolo,et al.  Temporal distance metrics for social network analysis , 2009, WOSN '09.

[23]  Jure Leskovec,et al.  {SNAP Datasets}: {Stanford} Large Network Dataset Collection , 2014 .

[24]  John T. Welch,et al.  A Mechanical Analysis of the Cyclic Structure of Undirected Linear Graphs , 1966, J. ACM.

[25]  Yi Lu,et al.  Path Problems in Temporal Graphs , 2014, Proc. VLDB Endow..

[26]  Jari Saramäki,et al.  Path lengths, correlations, and centrality in temporal networks , 2011, Physical review. E, Statistical, nonlinear, and soft matter physics.

[27]  Zhiguo Gong,et al.  Temporal PageRank on Social Networks , 2015, WISE.

[28]  James C. Tiernan,et al.  An efficient search algorithm to find the elementary circuits of a graph , 1970, CACM.

[29]  Burton H. Bloom,et al.  Space/time trade-offs in hash coding with allowable errors , 1970, CACM.