=Paper=
{{Paper
|id=Vol-3284/2973
|storemode=property
|title=Insights into the Complexity of Disentangling Temporal Graphs
|pdfUrl=https://ceur-ws.org/Vol-3284/2973.pdf
|volume=Vol-3284
|authors=Riccardo Dondi
|dblpUrl=https://dblp.org/rec/conf/ictcs/Dondi22
}}
==Insights into the Complexity of Disentangling Temporal Graphs==
Insights into the Complexity of Disentangling Temporal Graphs Riccardo Dondi1 1 UniversitΓ degli Studi di Bergamo, Italy Abstract We consider a variant of vertex cover in temporal graphs recently introduced to summarize timeline activities in social networks. Since the problem is already NP-hard when the time domain considered consists of two timestamps, we analyse the complexity of the problem in other restricted cases. We prove that the problem is NP-hard when (1) there exists exactly one interaction in each timestamp and (2) when each vertex has at most two interactions in each timestamp and the time domain consists of three timestamps. Moreover, we prove that the problem is fixed parameter tractable when the parameter is the size of the time window activity, which bounds the number of vertices with active temporal edges in a timestamp and the length of the interval where a vertex has incident temporal edges. Keywords Temporal Graphs, Graph Algorithms, Computational Complexity, Vertex Cover 1. Introduction The analysis of networks is recently considering representations that extend the classic graph model. In this context, temporal graphs describe dynamics of edge activity in a discrete time domain [1, 2]. Many works on temporal graphs have been focused on finding paths and analyzing their connectivity [1, 3, 4, 5, 6, 7, 8, 9] and to find cohesive subgraphs [10, 11]. Recently, one of the most prominent problem in graph theory and theoretical computer science, Vertex Cover, has been considered also for temporal graphs [12, 13]. In this paper we consider a variant of Vertex Cover, called Network Untangling, proposed in [13] and motivated by discovering event timelines and summarizing temporal networks. Given sequences of interactions, the problem looks for an explanation of the observed interactions with few (and short) activity intervals, such that each interaction is covered by at least one of the two entities involved (at least one of the two entities is active when the interaction is observed). This can be seen as a variant of Vertex Cover, where we have to cover temporal edges with the minimum activity of vertices, called span. The span of a vertex is the difference between the starting and ending timestamps of the interval where it is defined to be active. Four formulations of the problem have been considered in [13], depending on the fact that each vertex/entity can be active in one or π β₯ 2 intervals and that the goal is to minimize the sum of spans of vertex activities or the maximum activity span of a vertex. Here we focus on the Proceedings of the 23rd Italian Conference on Theoretical Computer Science, Rome, Italy, September 7-9, 2022 " riccardo.dondi@unibg.it (R. Dondi) Β© 2022 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CEUR Workshop Proceedings http://ceur-ws.org ISSN 1613-0073 CEUR Workshop Proceedings (CEUR-WS.org) formulation where each vertex can be active in exactly one interval and the objective function is the minimization of the sum of the span of vertex activities, a problem called MinTimelineCover. Other two variants of Vertex Cover in temporal graphs have been considered in [12]. A first variant asks for the minimum number of vertex activities such that each non-temporal edge π = {π’, π£} is temporally covered, that is there exists a timestamp π‘ where π is active and one of (π’, π‘) and (π£, π‘) belongs to the cover. A second variant asks each temporal edge to be temporally covered at least once for every interval of a given length Ξ. The two variants are shown NP-hard, also in very restricted cases [12]. Further results on the problem variants, including their approximability, have been given in [12, 14]. The MinTimelineCover problem is known to be NP-hard also in very restricted cases, in particular when the time domain consists of two timestamps [15] (notice that when the time domain consists of a single timestamp, the problem is trivially in P, since any solution of the problem has span 0). MinTimelineCover is fixed-parameter tractable, when parameterized by the span of the solution and the time domain consists of exactly two timestamps [15]. Furthermore, in [15] the parameterized complexity of the variants of Network Untangling proposed in [13] has been explored, considering as parameters the number of vertices of the temporal graph, the length of the time domain, the number of intervals of vertex activity and the span of a solution. In this paper, we further analyze the complexity of the MinTimelineCover problem by consid- ering restrictions of the temporal input graph. We prove in Section 3 that the problem is NP-hard even when there exists at most one interaction in each timestamp. In Section 4 we consider a bound on the degree of the input temporal graph and on the length of the time domain and we show that MinTimelineCover NP-hard when each vertex has at most two interactions in each timestamp and the time domain consists of three timestamps. Finally, in Section 5 we prove that the problem is fixed parameter tractable when the parameter is the size of the time window activity that bounds (1) the number of vertices with temporal edges in a timestamp and (2) the interval length where a vertex has incident temporal edges. We conclude the paper with some open problems in Section 6. In Section 2 we present some definitions and we formally define the MinTimelineCover problem. Some of the proofs are omitted due to space constraints. 2. Preliminaries We start this section by introducing the definition of discrete time domain over which is defined a temporal graph. Definition 1. A discrete time domain π― is a sequence of timestamp π‘π , 1 β€ π β€ |π― |, where each π‘π is an integer and π‘π < π‘π+1 . An interval π = [π‘π , π‘π ] over π― , where π‘π , π‘π β π― and π‘π β€ π‘π , is the sequence of timestamps with value between π‘π and π‘π . Two intervals π1 = [π‘π,1 , π‘π,1 ], π2 = [π‘π,2 , π‘π,2 ] are disjoint if they do not share any timestamp, that is π‘π,1 β€ π‘π,1 < π‘π,2 β€ π‘π,2 or π‘π,2 β€ π‘π,2 < π‘π,1 β€ π‘π,1 . The concatenation of the disjoint intervals π1 and π2 is an interval π1 Β· π2 obtained by merging the two time intervals π1 and π2 , that is, assuming without loss of generality that π‘π,1 β€ π‘π,1 < π‘π,2 β€ π‘π,2 , it is defined as follows: π1 Β· π2 = [π‘π,1 , π‘π,2 ]. Given a set of pairwise disjoint intervals π1 = [π‘π,1 , π‘π,1 ], π2 = [π‘π,2 , π‘π,2 ], . . . , ππ = [π‘π,π , π‘π,π ], where π‘π,1 β€ π‘π,1 < π‘π,2 β€ π‘π,2 < Β· Β· Β· < π‘π,π β€ π‘π,π , we can define the concatenation of these intervals: π1 Β· π2 Β· . . . ππ = [π‘π,1 , π‘π,2 ]. We present now the definition of temporal graph. We consider a model where the vertex set is not changing in the time domain. Definition 2. A temporal graph πΊπ‘ = (ππ‘ , πΈπ‘ , π― ) consists of 1. A set ππ‘ of vertices 2. A time domain π― 3. A set πΈπ‘ β ππ‘ Γ ππ‘ Γ π― of temporal edges, where a temporal edge of πΊπ‘ is a triple {π’, π£, π‘}, with π’, π£ β ππ‘ and π‘ β π― . Given an interval πΌ of π― , πΈπ‘ (πΌ) denotes the set of active edges in the timestamps of πΌ, that is: πΈπ‘ (πΌ) = {{π’, π£, π‘}|{π’, π£, π‘} β πΈπ‘ β§ π‘ β πΌ} πΈπ‘ (π ) denotes the set of active edges in timestamp π . Given a vertex π£ β ππ‘ , an activity interval of π£ is defined as an interval πΌπ£ = [ππ£ , ππ£ ] of the time domain where π£ is considered active, while in any timestamp not in πΌπ£ , π£ is considered inactive. Informally, πΌπ£ defines the time interval where π£ is considered active. Notice that if πΌπ£ = [ππ£ , ππ£ ] is an activity interval of π£, there may exist temporal edges {π’, π£, π‘}, with π‘ < ππ£ or π‘ > ππ£ (see the example in Fig. 1). An activity timeline π is a set of activity intervals, defined as: π = {πΌπ£ : π£ β ππ‘ } Given a temporal graph πΊπ‘ = (ππ‘ , πΈπ‘ , π― ), a timeline π covers πΊπ‘ = (ππ‘ , πΈπ‘ , π― ) if for each temporal edge {π’, π£, π‘} β πΈπ‘ , π‘ belongs to πΌπ’ or to πΌπ£ , where πΌπ’ (πΌπ£ , respectively) is the activity interval of π’ (of π£, respectively) defined by π. The span of an interval πΌπ£ = [ππ£ , ππ£ ], for some π£ β π , is defined as follows: π (πΌπ£ ) = |ππ£ β ππ£ |. Notice that for an interval πΌπ£ = [ππ£ , ππ£ ] consisting of a single timestamp, that is where ππ£ = ππ£ , it holds that π (πΌπ£ ) = 0. The overall span of an activity timeline π is equal to βοΈ π (π) = π (πΌπ£ ). πΌπ£ βπ Now, we are ready to define the problem we are interested into (see the example of Fig. 1). Problem 1. (MinTimelineCover) Input: A temporal graph πΊπ‘ = (ππ‘ , π― , πΈπ‘ ). Output: An activity timeline of minimum span that covers πΊπ‘ . π£1 π£2 π£3 π£4 π‘=1 π‘=2 π‘=3 Figure 1: An example of MinTimelineCover on a temporal graph πΊπ‘ consisting of four vertices (π£1 , π£2 , π£3 , π£4 ) and three timestamps (1, 2, 3); for each timestamp, we present the active temporal edges of πΊπ‘ . For example for π‘ = 1, the active edges are {π£1 , π£3 , 1}, {π£1 , π£4 , 1}, {π£2 , π£3 , 1}. The intervals in gray represent the activity intervals of each vertex; for example vertex π£1 is active in timestamp 1, with span equal to 0, vertex π£2 is active in interval [1, 2] and it has a span equal to 1. Notice that the activity timeline defined by the vertex activity intervals covers the temporal graph with total span equal to 1. Given a temporal graph πΊπ‘ = (ππ‘ , πΈπ‘ , π― ) and a vertex π£ β ππ‘ , the local degree of π£ in a timestamp π‘, denoted by ΞπΏ (π£, π‘), is the number of temporal edges {π£, π’, π‘}, with π’ β ππ‘ . The local degree ΞπΏ of πΊπ‘ is the maximum over π£ and π‘ of ΞπΏ (π£, π‘). Given an interval πΌ of the time domain π― , the time window associated with πΌ (denoted by π€(πΌ)) is defined as π€(πΌ) = {(π£, π‘) : {π£, π’, π‘} β πΈπ‘ β§ π‘ in πΌ} that is the set of pairs consisting of vertices of ππ‘ and timestamps of πΌ, such that there exists a temporal edge incident in π£ in some timestamp of πΌ. We define a temporal graph to be (π€, β)- window-constrained if (1) the temporal edges incident in each vertex belong to an interval of length at most π€ and (2) at most β vertices are active in each timestamp. 3. Hardness of MinTimelineCover for Bounded Activity In this section we consider the MinTimelineCover problem when each timestamp contains at most a single active edge, and thus the local degree ΞπΏ of πΊπ is also bounded by 1. We denote this restriction by 1-MinTimelineCover. We prove that 1-MinTimelineCover is NP-hard by giving a reduction from the Vertex Cover problem. First, we recall the definition of Vertex Cover: {π’π ,π’0 ,π‘} β {π’β²π ,π’0 ,π‘} {π’π ,π’π ,π‘} {π’π ,π’β²π ,π‘} β {π’0 ,π’β²0 ,π‘} β {π’0 ,π’β²0 ,π‘} πΌπ,1 πΌπ,1 πΌπ,2 πΌπΈ πΌπ,3 πΌπ,2 πΌπ΄,1 πΌπ,3 πΌπ΄,2 Figure 2: A sketch of the time domain π― built by the reduction. For each of the nine disjoint intervals introduced to define π― , we report in the upper part a temporal edge defined in that interval; a symbol β is used when no temporal edge is defined in the interval. Problem 2. (Vertex Cover) Input: A graph πΊ = (π, πΈ). Output: A minimum cardinality vertex cover π β² of πΊ , that is for each {π’, π£} β πΈ, π’ β π β² or π£ β π β². Given an instance πΊ = (π, πΈ) of Vertex Cover, where |π | = π and |πΈ| = π, we build a corresponding temporal graph πΊπ‘ = (ππ‘ , πΈπ‘ , π― ), instance of 1-MinTimelineCover, as follows (a sketch of the temporal graph is given in Fig. 2). First, we define the time domain π― , which consists of 2π4 + π2 + π + π + 3 timestamps and is defined starting from the following disjoint intervals: πΌπ,1 = [1, π] (π timestamps) πΌπ,1 = [π + 1, π2 + π] (π2 timestamps) πΌπ,2 = [π2 +π+1, π2 +2π] (π timestamps) πΌπΈ = [π2 +2π+1, π2 +π+2π] (π timestamps) πΌπ,3 = [π2 + π + 2π + 1, π2 + π + 3π] (π timestamps) πΌπ,2 = [π2 + π + 3π + 1, π4 + π2 + π + 3π] (π4 timestamps) πΌπ΄,1 = [π4 + π2 + π + 3π + 1, π4 + π2 + π + 3π + 1] (1 timestamp) πΌπ,3 = [π4 + π2 + π + 3π + 2, 2π4 + π2 + π + 3π + 2] (π4 timestamps) πΌπ΄,2 = [2π4 + π2 + π + 3π + 3, 2π4 + π2 + π + 3π + 3] (1 timestamp) Notice that πΌπ΄,1 and πΌπ΄,2 consists of a single timestamp. The time domain π― is the concate- nation of the intervals defined previously: π― = πΌπ,1 Β· πΌπ,1 Β· πΌπ,2 Β· πΌπΈ Β· πΌπ,3 Β· πΌπ,2 Β· πΌπ΄,1 Β· πΌπ,3 Β· πΌπ΄,2 The set ππ‘ is defined as follows: ππ‘ = {π’π , π’β²π : π£π β π, 1 β€ π β€ π} βͺ {π’0 } βͺ {π’β²0 } Now, we define the set πΈπ‘ of temporal edges in each interval of the time domain π― . In each time interval πΌπ,π₯ , π₯ β {1, 2, 3}, no temporal edge is active. Furthermore, we assume that the edges of πΊ are ordered based on the lexicographic order, and we refer to the π-th edge of πΊ as the edge in position π based on this order. Recall that πΈπ‘ (πΌ) denotes the set of temporal edges active in interval πΌ. Next, we define the sets of temporal edges in πΌπ,1 , πΌπ,2 , πΌπΈ , πΌπ,3 , πΌπ΄,1 and πΌπ΄,2 : πΈπ‘ (πΌπ,1 ) = {{π’π , π’0 , π} : 1 β€ π β€ π} πΈπ‘ (πΌπ,2 ) = {{π’β²π , π’0 , π‘} : π‘ = π2 + π + π, 1 β€ π β€ π} πΈπ‘ (πΌπΈ ) = {{π’π , π’π , π‘} : π‘ = π2 + 2π + π, 1 β€ π β€ π, {π£π , π£π } is the π-edges of πΈ} πΈπ‘ (πΌπ,3 ) = {{π’π , π’β²π , π‘} : π‘ = π2 + π + 2π + π, 1 β€ π β€ π} πΈπ‘ (πΌπ΄,1 ) = {{π’0 , π’β²0 , π‘} : π‘ = π4 + π2 + π + 3π + 1} πΈπ‘ (πΌπ΄,2 ) = {{π’0 , π’β²0 , π‘} : π‘ = 2π4 + π2 + π + 3π + 3}. We start by proving some properties of πΊπ‘ . First, notice that by construction in each timestamp there exists at most one active temporal edge, thus πΊπ‘ is an instance of 1-MinTimelineCover. Now, we present a property of vertices π’0 and π’β²0 . Lemma 1. Given an instance πΊ of Vertex Cover, let πΊπ‘ be the corresponding instance of 1- MinTimelineCover. Consider a solution π of 1-MinTimelineCover on instance πΊπ‘ of span at most π(π2 + π + 2π), then each of the vertices π’0 and π’β²0 is active in exactly one of the timestamps of intervals πΌπ΄,1 and πΌπ΄,2 . We show next how to relate a vertex cover of πΊ and a solution of MinTimelineCover on πΊπ‘ . Lemma 2. Given an instance πΊ of Vertex Cover, let πΊπ‘ be the corresponding instance of 1- MinTimelineCover. Given a vertex cover of πΊ consisting of π vertices, there exists a solution of 1-MinTimelineCover on instance πΊπ‘ of span at most π(π2 + π + 2π) + (π β π)(π + π). Proof. Consider a vertex cover π β² β π of πΊ, with |π β² | = π. We define a solution π of 1-MinTimelineCover as follows: β’ Vertex π’0 (π’β²0 , respectively), is active in the unique timestamp of interval πΌπ΄,1 (of interval πΌπ΄,2 , respectively); π’0 and π’β²0 have a span equal to 0 β’ For each vertex π£π β π β π β² , vertex π’π is active in timestamp π and has a span equal to 0, π’β²π is active in the interval between timestamps π2 + π + π and π2 + π + 2π + π, and has a span equal to π + π. β’ For each vertex π£π β π β² , π’π is active in the interval between timestamp π and timestamp π2 + π + 2π + π, and has a span equal to π2 + π + 2π; vertex π’β²π is active in timestamp π2 + π + π , and has a span equal to 0. First, we show that π is a solution of 1-MinTimelineCover, that is it covers every temporal edge of πΊπ‘ . Indeed, the temporal edges of πΌπ΄,1 and πΌπ΄,2 are covered by π’0 and π’β²0 . The temporal edges in πΌπ,1 are covered by vertices π’π , 1 β€ π β€ π, since π’π is active in timestamp π. The temporal edges of πΌπ,2 are covered by π’β²π , 1 β€ π β€ π, since π’β²π is active in timestamp π2 + π + π. Since π β² is a vertex cover of πΊ, by construction π’π is active in interval [π, π2 + π + π + π] or π’π is active in interval [π, π2 + π + 2π + π]; both intervals include πΌπΈ where temporal edge {π’π , π’π , π‘} is defined. Finally, the edges of πΌπ,3 are covered either by π’π , if π£π β π β² , since π’π in this case is active in interval [π, π2 + π + 2π + π], or by π’β²π , if π£π β π β π β² , since π’β²π in this case is active in interval [π2 + π + π, π2 + π + 2π + π]. It follows that all the temporal edges are covered, thus π covers πΊπ‘ . Now, consider the span of π. Since π vertices π’π (with π£π β π β² ) have a span of π2 + π + 2π and π β π vertices π’β²π (with π£π β π β π β² ) have a span of π + π, the overall span of π is π(π2 + π + 2π) + (π β π)(π + π). Based on Lemma 1, we can prove the following result. Lemma 3. Given an instance πΊ of Vertex Cover, let πΊπ‘ be the corresponding instance of 1- MinTimelineCover. Given a solution π of 1-MinTimelineCover on instance πΊπ‘ having span π(π2 + π + 2π) + (π β π)(π + π), there exists a vertex cover of πΊ consisting of at most π vertices. Now, we are able to prove the main result of this section. Theorem 1. 1-MinTimelineCover is NP-hard. Proof. It follows from Lemma 2 and Lemma 3, that we have designed a polynomial-time reduc- tion from Vertex Cover to 1-MinTimelineCover. Since Vertex Cover is NP-hard [16], it follows that also 1-MinTimelineCover is NP-hard. 4. MinTimelineCover for Bounded Degree and Time Domain In this section we consider another restriction of the MinTimelineCover problem, when the input temporal graph has bounded local degree and bounded time domain. We prove that MinTimelineCover is NP-hard even when the time domain consists of three timestamps and the local degree ΞπΏ β€ 2, by giving a reduction from Vertex Cover on cubic graphs (a variant of Vertex Cover denoted by Cubic Vertex Cover). We recall that a graph is cubic when each of its vertex has degree three. Given an instance πΊ = (π, πΈ) of Cubic Vertex Cover, we build a corresponding temporal graph πΊπ‘ = (ππ‘ , πΈπ‘ , π― ) as follows (a sketch of πΊπ‘ is given in Fig. 3). First, we define the time domain π― = [1, 2, 3]. The vertex set ππ‘ is defined as follows. Let ππ , with π£π β π and 1 β€ π β€ |π |, be the following set of vertices: ππ = {π’π,1 , π’π,2 , π’π,3 , π€π,π , π€π,π , π§π : π£π β π }. The set ππ‘ is then defined as follows: |π | βοΈ ππ‘ = ππ . π=1 The set πΈπ‘ consists of three subsets πΈπ‘,1 , πΈπ‘,2 , πΈπ‘,3 , representing edges active in timestamp 1, 2, 3, respectively. As in the reduction of Section 3, we assume that the edges of πΊ are ordered based on lexicographic order. Since πΊ is cubic, based on this order we refer to the edges incident on a vertex π£ β π as the first (second, third, respectively) edge incident in π£. The set πΈπ‘,1 , πΈπ‘,2 , πΈπ‘,3 are defined as follows: πΈπ‘,1 = {{π€π,π , π§π , 1}, {π€π,π , π§π , 1} : π£π β π } πΈπ‘,2 = {{π’π,1 , π€π,π , 2}, {π’π,2 , π€π,π , 2}, {π’π,2 , π€π,π , 2}, {π’π,3 , π€π,π , 2} : π£π β π } πΈπ‘,3 = {{π€π,π , π§π , 3}, {π€π,π , π§π , 3} : π£π β π } βͺ {{π’π,π₯ , π’π,π¦ , 3} : {π£π , π£π } β πΈ and {π£π , π£π } is the π₯-th edge of π£π and the π¦-th edge of π£π 1 β€ π₯, π¦ β€ 3} We start by proving some properties of the temporal graph πΊπ‘ . Lemma 4. Given an instance πΊ of Cubic Vertex Cover, let πΊπ‘ be the corresponding instance of MinTimelineCover. Then the local degree ΞπΏ of πΊπ is 2. Next, we prove that we can restrict ourselves to solutions where each vertex π§π , 1 β€ π β€ |π |, is active only in timestamp 3. Lemma 5. Given an instance πΊ of Cubic Vertex Cover, let πΊπ‘ be the corresponding instance of MinTimelineCover. Then, given a solution π of MinTimelineCover on instance πΊπ‘ , we can compute in polynomial time a solution πβ² of MinTimelineCover on instance πΊπ‘ such that each vertex π§π is active only in timestamp 3 and the span of πβ² is at most the span of π. Now, we show how to relate and a solution of MinTimelineCover on πΊπ‘ . Lemma 6. Given an instance πΊ of Cubic Vertex Cover, let πΊπ‘ be the corresponding instance of MinTimelineCover. Then, given a solution π β² of Cubic Vertex Cover, with |π β² | = π, we can compute in polynomial time a solution of MinTimelineCover on instance πΊπ‘ of span at most |πΈ| + π β |π |. π’π,1 π€π,π π€π,π π€π,π π§π π’π,2 π§π π€π,π π€π,π π€π,π π’π,3 π’π,π₯ π’π,π¦ πΈπ‘,1 πΈπ‘,2 πΈπ‘,3 Figure 3: The structure of the temporal graph πΊπ‘ ; πΈπ‘,1 , πΈπ‘,2 , πΈπ‘,3 are the sets of temporal edges defined in the three timestamps 1, 2 and 3, respectively. Proof. Consider a solution π β² of Cubic Vertex Cover on instance πΊ, we define a solution π of MinTimelineCover on instance πΊπ‘ as follows. For each set ππ , 1 β€ π β€ |π |, associated with π£π β π β π β² , π is defined as follows: β’ π€π,π , π€π,π are active in interval [1, 2], each one with span 1 β’ For each {π£π , π£π } β πΈ, which is the π-th edge of π£π and the π-th edge of π£π , π’π,π is active in timestamp 3 with span 0 β’ Vertex π§π is active in timestamp 3, with span 0. For each set ππ , 1 β€ π β€ |π |, associated with π£π β π β² , π is defined as follows: β’ Vertices π€π,π , π€π,π are active in timestamp 1, each one with span 0 β’ Each vertex π’π,π , 1 β€ π β€ 3, is active in timestamp 2 (the span of π’π depends on the next point) β’ For each {π£π , π£π } β πΈ, with π£π , π£π β π β² , which is the π-th edge of π£π and the π-th edge of π£π : if π < π then π’π,π is active in interval [2, 3] (with span 1), else π’π,π is active in interval [2, 3] (with span 1). β’ Vertex π§π is active in timestamp 3. By construction, π covers each temporal edge of πΊπ‘ . Indeed, the temporal edges in πΈπ‘,1 are covered by π€π,π , π€π,π for each π with 1 β€ π β€ |π |. The temporal edges in πΈπ‘,2 are either covered by π€π,π , π€π,π , if π£π β π β π β² , or by π’π,1 , π’π,2 , π’π,3 , if π£π β π β² . The temporal edges {π€π,π , π§π , 3} and {π€π,π , π§π , 3} of πΈπ‘,3 are covered by π§π ; the temporal edges {π’π,π₯ , π’π,π¦ , 3} are covered by one of π’π,π₯ , π’π,π¦ . Now, the span of π is 1 for each {π£π , π£π } β πΈ, where π£π , π£π β π β² . Consider now an edge {π£π , π£π } β πΈ, where either π£π or π£π in π β π β² , assume without loss of generality that π£π β π β² ; then π has a span of 2 for the set ππ (both π€π,π and π€π,π have a span 1) for the three edges incident in π£π in πΊ. Hence the overall span of π is |πΈ| β |π β π β² | = |πΈ| + π β |π |, thus concluding the proof. Based on Lemma 5, we can prove the following result. Lemma 7. Given an instance πΊ of Cubic Vertex Cover let πΊπ‘ be the corresponding instance of MinTimelineCover. Then, given a solution MinTimelineCover on instance πΊπ‘ of span |πΈ|+πβ|π |, we can compute in polynomial time a solution of Cubic Vertex Cover of size at most π. Now, we can prove the main result of this section. Theorem 2. MinTimelineCover is NP-hard even when the time domain consists of three times- tamps and the local degree ΞπΏ β€ 2. Proof. By Lemma 4, Lemma 6 and Lemma 7 it follows that that we have designed a polynomial- time reduction from Cubic Vertex Cover to MinTimelineCover when the time domain consists of three timestamps and the local degree ΞπΏ β€ 2. Since Cubic Vertex Cover is NP-hard [17], it follows that also MinTimelineCover is NP-hard when the time domain consists of three timestamps and the local degree ΞπΏ β€ 2. 5. Bounding the Time Window In this section we consider the parameterized complexity of MinTimelineCover for (π€, β)- window constrained temporal graphs, when the parameters are π€, β (the size of the time window). Notice that when one of π€, β is the parameter, the problem is not in the class XP (if β = 2 for the result in Section 3, if π€ = 2 for the hardness of MinTimelineCover on a time domain of two timestamps [15]). We define ππ,π€ = π€([π β π€ + 1, π]), that is a time window of length π€ that ends in timestamp π and that consists of the set of pairs (π£, π‘) such that π£ has an active edge in timestamp π‘, with π β π€ + 1 β€ π‘ β€ π. An activity assignment πΉπ,π€ for a time window ππ,π€ is a function that establishes, for each pair (π£, π‘) of ππ,π€ , if π£ is active in timestamp π‘. Formally, an activity assignment πΉπ,π€ is a function πΉπ,π€ : ππ,π€ β {0, 1} such that for each pair (π£, π‘) it holds that: β’ π£ is active in timestamp π‘ if and only if πΉπ,π€ (π£, π‘) = 1 (thus π£ is not active in timestamp π‘ if and only if πΉπ,π€ (π£, π‘) = 0) β’ if πΉπ,π€ (π£, π‘1 ) = 1 and πΉπ,π€ (π£, π‘2 ) = 1, with π β π€ + 1 β€ π‘1 β€ π‘2 β€ π, then πΉπ,π€ (π£, π‘) = 1 for each π‘ with π‘1 β€ π‘ β€ π‘2 . The span of πΉπ,π€ , denoted by π (πΉπ,π€ ), is the span induced by the activity assignment πΉπ,π€ . Consider two time windows ππ,π€ and ππ,π€ , with 1 β€ π β π€ + 1 β€ π < π β€ |π― |, and two assignment functions πΉπ,π€ and πΉπ,π€ . πΉπ,π€ and πΉπ,π€ are in agreement if, for each (π£, π‘) β ππ,π€ β© ππ,π€ it holds that πΉπ,π€ (π£, π‘) = πΉπ,π€ (π£, π‘). An activity timeline π is in agreement with an activity assignment πΉπ,π€ if the activity defined by π for the pairs in ππ,π€ is identical to πΉπ,π€ . Next, we describe a dynamic programming algorithm to compute a solution of MinTime- lineCover parameterized by π€ and β. Given two assignment functions πΉπ,π€ and πΉπβ1,π€ that are in agreement, define the value π·(πΉπ,π€ , πΉπβ1,π€ ) as the span added by πΉπ,π€ (in timestamp π) with respect to πΉπβ1,π€ . Formally, π·(πΉπ,π€ , πΉπβ1,π€ ) is defined as follows: π·(πΉπ,π€ , πΉπβ1,π€ ) = |{π£ : (π£, π β1) β ππβ1,π€ β§(π£, π) β ππ,π€ β§πΉπ,π€ (π£, π) = πΉπβ1,π€ (π£, π) = 1}| Given an activity assignment πΉπ,π€ of an active window ππ,π€ , define the function πΆ[πΉπ,π€ ] as the minimum span of an activity timeline of the temporal graph πΊπ‘ on interval [1, π], such that: 1. The activity of vertices in the time window ππ,π€ is defined by πΉπ,π€ 2. Each temporal edge {π’, π£, π‘} of πΊπ‘ , with 1 β€ π‘ β€ π, is covered 3. Each vertex active in timestamp π is not active in interval [1, π β π€] (since πΊπ‘ is (π€, β)- window constrained) Now, πΆ[πΉπ,π€ ] is computed with the following recurrence: β’ If π > π€, then πΆ[πΉπ,π€ ] is the minimum, over πΉπβ1,π€ in agreement with πΉπ,π€ , of πΆ[πΉπβ1,π€ ] + π·(πΉπ,π€ , πΉπβ1,π€ ) β’ If π = π€, πΆ[πΉπ€,π€ ] = π (πΉπ€,π€ ), that is the span of πΉπ€,π€ . Next, we show the correctness of the recurrence. Lemma 8. πΆ[πΉπ,π€ ] = π, if and only if there exists an activity timeline of πΊπ‘ in interval [1, π] of span π. Based on Lemma 8, we can prove the main result of this section. Theorem 3. A solution of MinTimelineCover on instance πΊπ‘ can be computed in π(2β(π€+1) β|π― |) time. Proof. The correctness of the recurrence follows from Lemma 8, thus the span of an optimal solution of MinTimelineCover on instance πΊπ‘ is computed in entry πΆ[πΉ|π― |,π€ ]. Next, we consider the time complexity of the algorithm. The base case πΆ[πΉπ€,π€ ] can be computed in π(2βπ€ ) time, as there exist at most β vertices with active temporal edges in each timestamp of interval [1, π€]. Now, we consider the case π > π€. First, notice that each entry πΆ[πΉπ,π€ ] can have at most 2βπ€ values and there are π(π― ) of such entries. Now, πΆ[πΉπ,π€ ] is computed starting from the values πΆ[πΉπβ1,π€ ] (where πΉπ,π€ and πΉπβ1,π€ are in agreement) This requires the definition of the activity timeline of vertices active in timestamp π (at most β), in π(2β ) time and, for each of them, the computation of π·(πΉπ,π€ , πΉπβ1,π€ ), which requires π(β) time. Hence the overall time complexity of the dynamic programming algorithm is π(2β(π€+1) β|π― |). 6. Conclusion We have considered a variant of Vertex Cover, called MinTimelineCover, on temporal graphs. We have shown that the problem is NP-hard even in restricted cases (one temporal edge active in each timestamp, local degree two for temporal graphs on a time domain of three timestamps). Moreover, we have shown that MinTimelineCover is fixed-parameter tractable when the size of the activity time window is the parameter. There are several interesting future directions related to MinTimelineCover. First, the param- eterized complexity of MinTimelineCover is open when the problem is parameterized by the span of the solution (recall that in this case the problem is fixed-parameter tractable when the time domain consists of two timestamps [15]). Moreover, it would be interesting to analyze the approximation complexity of the problem. References [1] D. Kempe, J. M. Kleinberg, A. Kumar, Connectivity and inference problems for temporal networks, J. Comput. Syst. Sci. 64 (2002) 820β842. doi:10.1006/jcss.2002.1829. [2] P. Holme, Modern temporal network theory: a colloquium, The European Physical Journal B 88 (2015) 234. [3] H. Wu, J. Cheng, S. Huang, Y. Ke, Y. Lu, Y. Xu, Path problems in temporal graphs, Proc. VLDB Endow. 7 (2014) 721β732. doi:10.14778/2732939.2732945. [4] H. Wu, J. Cheng, Y. Ke, S. Huang, Y. Huang, H. Wu, Efficient algorithms for temporal path computation, IEEE Trans. Knowl. Data Eng. 28 (2016) 2927β2942. doi:10.1109/TKDE. 2016.2594065. [5] T. Erlebach, M. Hoffmann, F. Kammer, On temporal graph exploration, J. Comput. Syst. Sci. 119 (2021) 1β18. doi:10.1016/j.jcss.2021.01.005. [6] P. Zschoche, T. Fluschnik, H. Molter, R. Niedermeier, The complexity of finding small separators in temporal graphs, J. Comput. Syst. Sci. 107 (2020) 72β92. doi:10.1016/j. jcss.2019.07.006. [7] T. Fluschnik, H. Molter, R. Niedermeier, M. Renken, P. Zschoche, Temporal graph classes: A view through temporal separators, Theor. Comput. Sci. 806 (2020) 197β218. doi:10. 1016/j.tcs.2019.03.031. [8] B. M. Bumpus, K. Meeks, Edge exploration of temporal graphs, in: P. Flocchini, L. Moura (Eds.), Combinatorial Algorithms - 32nd International Workshop, IWOCA 2021, Ottawa, ON, Canada, July 5-7, 2021, Proceedings, volume 12757 of Lecture Notes in Computer Science, Springer, 2021, pp. 107β121. doi:10.1007/978-3-030-79987-8\_8. [9] A. Marino, A. Silva, KΓΆnigsberg sightseeing: Eulerian walks in temporal graphs, in: P. Floc- chini, L. Moura (Eds.), Combinatorial Algorithms - 32nd International Workshop, IWOCA 2021, Ottawa, ON, Canada, July 5-7, 2021, Proceedings, volume 12757 of Lecture Notes in Computer Science, Springer, 2021, pp. 485β500. doi:10.1007/978-3-030-79987-8\_34. [10] P. Rozenshtein, F. Bonchi, A. Gionis, M. Sozio, N. Tatti, Finding events in temporal networks: segmentation meets densest subgraph discovery, Knowl. Inf. Syst. 62 (2020) 1611β1639. doi:10.1007/s10115-019-01403-9. [11] R. Dondi, M. M. Hosseinzadeh, Dense sub-networks discovery in temporal networks, SN Comput. Sci. 2 (2021) 158. doi:10.1007/s42979-021-00593-w. [12] E. C. Akrida, G. B. Mertzios, P. G. Spirakis, C. L. Raptopoulos, The temporal explorer who returns to the base, J. Comput. Syst. Sci. 120 (2021) 179β193. doi:10.1016/j.jcss.2021. 04.001. [13] P. Rozenshtein, N. Tatti, A. Gionis, The network-untangling problem: from interac- tions to activity timelines, Data Min. Knowl. Discov. 35 (2021) 213β247. doi:10.1007/ s10618-020-00717-5. [14] T. Hamm, N. Klobas, G. B. Mertzios, P. G. Spirakis, The complexity of temporal vertex cover in small-degree graphs, CoRR abs/2204.04832 (2022). doi:10.48550/arXiv.2204. 04832. [15] V. Froese, P. Kunz, P. Zschoche, Disentangling the computational complexity of network untangling, in: L. D. Raedt (Ed.), Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI 2022, Vienna, Austria, 23-29 July 2022, ijcai.org, 2022, pp. 2037β2043. doi:10.24963/ijcai.2022/283. [16] R. M. Karp, Reducibility among combinatorial problems, in: R. E. Miller, J. W. Thatcher (Eds.), Proceedings of a symposium on the Complexity of Computer Computations, held March 20-22, 1972, at the IBM Thomas J. Watson Research Center, Yorktown Heights, New York., The IBM Research Symposia Series, Plenum Press, New York, 1972, pp. 85β103. [17] P. Alimonti, V. Kann, Some APX-completeness results for cubic graphs, Theor. Comput. Sci. 237 (2000) 123β134.