<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Finding simple temporal cycles in an interaction network</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Rohit</forename><surname>Kumar</surname></persName>
							<email>rohit.kumar@ulb.ac.be</email>
							<affiliation key="aff0">
								<orgName type="institution">Université Libre de Bruxelles</orgName>
								<address>
									<country key="BE">Belgium</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Toon</forename><surname>Calders</surname></persName>
							<email>toon.calders@uantwerpen.be</email>
							<affiliation key="aff0">
								<orgName type="institution">Université Libre de Bruxelles</orgName>
								<address>
									<country key="BE">Belgium</country>
								</address>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="institution">Universiteit Antwerpen</orgName>
								<address>
									<country key="BE">Belgium</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Finding simple temporal cycles in an interaction network</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">7408CDD8B6780DA75D4A2F8EC8B578D2</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T08:55+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Interaction networks differentiate themselves from the traditional networks in the sense that nodes interact continuously and repeatedly. Hence, when studying patterns in interaction networks it is essential to take into account the temporal nature of the data. In this paper, we present preliminary work on the problem of finding cyclic interaction patterns; for instance: one person transfers money to a second person, who transfers it to a third person transferring the money back to the first person. It is important here that the cycle occurs in the right temporal order, and that the time interval between the first and the last interaction of the cycle does not exceed a given time window. Cyclic patterns represent highly useful information; they are for instance used to detect specific types of fraud in financial transaction networks. Furthermore, as our results show, datasets from different domains show different behavior in terms of number and size of cycles. As such, cycles capture essential differences in temporal behavior of interaction networks.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>With the advancement of the current digital era, very large temporal graphs are becoming quite common. Examples include the re-tweet network, online transactions, and phone or SMS communication. Most studies that aim at finding local or global patterns in such networks concentrate on static networks only, in which the links are relatively stable, such as for instance friendship links in social networks. In this paper, we are interested in the interactions that take place in such networks themselves, not the static structure they create. In order to study the dynamics of these networks, it is essential to take the temporal nature of the interactions into account <ref type="bibr" target="#b2">[3]</ref>.</p><p>Recently, Paranjape et al. <ref type="bibr" target="#b4">[5]</ref> introduced an algorithm for counting the number of occurrences of a given temporal motif in a temporal network. In their paper the authors show that datasets from different domains have significantly different motif counts, showing that temporal motifs are useful for capturing differences in temporal behavior. Our paper can be seen as an extension of this work to cyclic patterns, of any length, and constrained by a time window. Cycles appear naturally in many problem settings. For instance, in logistics if the interactions represent resources being moved between facilities, a cycle may indicate an optimization opportunity by reducing excessive relocation of resources; in stock trading cyclic patterns may indicate attempts to artificially create high trading volumes; and in financial transaction data cycles could be associated to specific types of fraud. The potential of cycles in the context of fraud detection has already been acknowledged <ref type="bibr" target="#b0">[1]</ref>.</p><p>Detecting or enumerating cycles in a directed static graph has already been studied for decades <ref type="bibr" target="#b1">[2]</ref>. The existing algorithms for enumerating cycles in static graphs, however, do not directly apply to temporal networks. This paper is the first one to extend the problem of enumerating all cycles to temporal networks. We propose an algorithm for mining cycles without repeating nodes that occur within a given time window, in one scan over a given set of interactions ordered by interaction time. In our experiments we observe that cycle length and frequency distribution varies based on the characteristics of the network. Let V be a set of nodes. An interaction is defined as a triplet (u, v, t), where u, v ∈ V , and t is a natural number representing the time the interaction took place. Interactions are directed and could denote, for instance, the sending of a message in a communication network. Multiple edges can appear at the same time. A temporal network G(V, E) is a set of nodes V , together with a set E of interactions over V . We will use n = |V | to denote the number of nodes in the temporal graph, and m = |E| to denote the total number of interactions. Definition 1. (Simple Temporal Cycle) A temporal path between two nodes u, v ∈ V is defined as a sequence of edges p = (u, n 1 , t 1 ), (n 1 , n 2 , t 2 ), .., (n k−1 , v, t k ) such that t 1 &lt; t 2 &lt; .. &lt; t k and all edges in p appears in E. dur(p) := t k − t 1 denotes the duration of the path. Often we use the more compact notation</p><formula xml:id="formula_0">u t1 → n 1 t2 → n 2 . . . t k → v.</formula><p>A temporal cycle with root node r is a temporal path from r to itself. The cycle is called simple if each internal node in the cycle occurs exactly once.</p><p>Simple Cycle Detection(SCD) Problem: Given a temporal network G(V, E) and a time window ω, find all simple cycles C with dur(C) ≤ ω.</p><p>Example 1. Consider the interaction network given in Figure <ref type="figure" target="#fig_0">1</ref>. This interaction network contains 4 simple cycles, all with root node a. The cycles are: a </p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Fig. 1 .</head><label>1</label><figDesc>Fig. 1. Example temporal network</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head></head><label></label><figDesc>If ω = 10, the set of the first two cycles form the solution to the SCD Problem.</figDesc></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0">Supported by Fonds de la Recherche Scientifique under Grant no T.0183.14 PDR</note>
		</body>
		<back>
			<div type="annex">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 1 Simple algorithm to find all cycles</head><p>Require: Threshold ω, interactions E Ensure: All simple cycles.</p><p>1: L ← {} 2: for (u, v, t) ∈ E, ordered ascending w.r.t. t do</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>3:</head><p>for p = v1 t 1 → v2 . . .</p><p>→ v} 9: else 10:</p><p>L ← L \ {p} prune paths exceeding the window duration 11:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Enumerating All Simple Temporal Cycles</head><p>We present a one pass algorithm to enumerate all cycles in a given temporal network in Algorithm 1. We assume that the interactions are stored in chronological order. The key idea behind the algorithm is to maintain a list(L) of all valid temporal paths for a given window length ω.</p><p>If the path is not valid it is removed from the list as it can never be extended in future to form a valid cycle (line 10). For each interaction (u, v, t), all valid paths that end in u and do not contain v are extended to create a new temporal path (line 8). Furthermore, all valid simple paths from v to u form a cycle with v as the root node for interaction (u, v, t) (line 6).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Experiments</head><p>We evaluated the run-time and memory requirements of Algorithm 1 on three different datasets (Higgs-twitter,Facebook-WSON and SMS-A) <ref type="bibr" target="#b3">[4]</ref> for ω = 1hr and 10hrs. We also analyzed the number and distribution of lengths of cycles in the different datasets.</p><p>Runtime and Memory. As shown in Table <ref type="table">1</ref> both time and memory requirements increase with increasing ω, because the temporal paths remain valid for a longer duration. The time and memory required for SMS-A is higher than Facebook-WSON though SMS-A has fewer interactions because of the large number of temporal paths and cycles in SMS-A as compared to Facebook-WSON.</p><p>Analysis of Cycles found. The maximal length of the cycles found increases as we increase ω. Facebook-WSON and SMS-A exhibit a similar cycle length distribution at ω = 1 but for SMS-A dataset number of triangles increases  <ref type="table">1</ref>. Time and memory requirement for different ω to find all the simple cycles. drastically for ω = 10 pointing to different kind of messaging behavior over time. Higgs-twitter has much higher cycle lengths and cycle frequency as compared to the other two datasets. These results are shown in Figure <ref type="figure">2</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion</head><p>We introduced a new problem in temporal pattern mining in interaction graphs: finding all temporal cycles. We introduced a one-pass algorithm for this problem based on maintaining all paths that can still become cycles. The results show that the number and length of cycles differ substantially between the Twitter dataset and the other two, social network related datasets. Future work includes the development of more efficient algorithms for finding all simple cycles.</p></div>			</div>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Fraud detection using network analysis</title>
		<author>
			<persName><forename type="first">F</forename><surname>Hoffmann</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Krasle</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">eP Patent App. EP20</title>
		<imprint>
			<biblScope unit="volume">140</biblScope>
			<biblScope unit="page">10</biblScope>
			<date type="published" when="2015">2015</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Finding all the elementary circuits of a directed graph</title>
		<author>
			<persName><forename type="first">D</forename><forename type="middle">B</forename><surname>Johnson</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">SIAM Journal on Computing</title>
		<imprint>
			<date type="published" when="1975">1975</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Maintaining sliding-window neighborhood profiles in interaction networks</title>
		<author>
			<persName><forename type="first">R</forename><surname>Kumar</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Calders</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Gionis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Tatti</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">ECML/PKDD</title>
				<imprint>
			<date type="published" when="2015">2015</date>
			<biblScope unit="volume">2</biblScope>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<author>
			<persName><forename type="first">J</forename><surname>Leskovec</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Krevl</surname></persName>
		</author>
		<ptr target="http://snap.stanford.edu/data" />
		<title level="m">SNAP Datasets: Stanford large network dataset collection</title>
				<imprint>
			<date type="published" when="2014-06">Jun 2014</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<monogr>
		<title level="m" type="main">Motifs in temporal networks</title>
		<author>
			<persName><forename type="first">A</forename><surname>Paranjape</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">R</forename><surname>Benson</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Leskovec</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2017">2017</date>
			<publisher>WSDM</publisher>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
