In a temporal graph, each edge is available at specific points in time. Such an availability point is often represented by a ''temporal edge'' that can be traversed from its tail only at a specific departure time, for arriving in its head after a specific travel time. In such a graph, the connectivity from one node to another is naturally captured by the existence of a temporal path where temporal edges can be traversed one after the other. When imposing constraints on how much time it is possible to wait at a node in-between two temporal edges, it then becomes interesting to consider temporal walks where it is allowed to visit several times the same node, possibly at different times. We study the complexity of computing minimum-cost temporal walks from a single source under waiting-time constraints in a temporal graph, and ask under which conditions this problem can be solved in linear time. Our main result is a linear time algorithm when temporal edges are provided in input by non-decreasing departure time and also by non-decreasing arrival time. We use an algebraic framework for manipulating abstract costs, enabling the optimization of a large variety of criteria or even combinations of these. It allows to improve previous results for several criteria such as number of edges or overall waiting time. This result is somehow optimal: a logarithmic factor in the time complexity appears to be necessary if the input contains only one ordering of the temporal edges (either by arrival times or departure times).
翻译:在时间图中, 每一个边缘都可以在特定的时间点中找到。 这种可用点通常由“ 时空边缘 ” 来代表, 只有在特定旅行时间后到达时, 才能在特定离开时间从尾部穿过尾巴, 才能在特定旅行时间到达头部。 在这样一个图中, 一个节点与另一个节点的连接自然地通过存在一个时间路径来捕捉。 当时间边缘可以在两个时间边缘之间的节点中等待多少时间时, 当对在两个时间边缘之间的节点施加限制时, 考虑允许它访问相同节点数倍的时间行走时( 可能在不同的时间点) 。 我们用时间图来研究在等待时间限制下从单一来源计算最低成本时间行走的复杂程度, 并询问这一问题在什么条件下可以在线时间得到解决。 我们的主要结果是当时间边缘在输入输入时被非递减离开时间和不递减到达时间时, 就会变得很有趣。 我们使用一个代数框架来调抽象成本, 可能是在不同的节点里离开时间,, 使一个单一来源 最短时间标准或最短的周期的结果 。