1: \begin{abstract}
2: The outcome of interactions in many real-world systems can be often explained
3: by a hierarchy between the participants.
4: Discovering hierarchy from a given directed network
5: can be formulated as follows: partition vertices into levels
6: such that, ideally, there are only forward edges, that is, edges from upper levels to lower levels.
7: In practice, the ideal case is impossible, so instead we minimize some
8: penalty function on the backward edges. One practical option for such a penalty
9: is agony, where the penalty depends on the severity of the violation.
10: In this paper we extend the definition of agony to temporal networks. In this
11: setup we are given a directed network with time stamped edges,
12: and we allow the rank assignment to
13: vary over time.
14: We propose 2 strategies for controlling the variation of individual ranks. In
15: our first variant, we penalize the fluctuation of the rankings over time by
16: adding a penalty directly to the optimization function.
17: In our second variant we allow the rank change at most once.
18: We show that the first variant can be solved exactly in polynomial time
19: while the second variant is \np-hard, and in fact inapproximable. However, we
20: develop an iterative method, where we first fix the change point and
21: optimize the ranks, and then fix the ranks and optimize the change points, and
22: reiterate until convergence.
23: We show empirically that the algorithms are reasonably fast in practice, and
24: that the obtained rankings are sensible.
25: \end{abstract}
26: