Abstract
Temporal path discovery in dynamic graphs is significant in many applications, such as the trip planning in transportation networks, and the disease progression tracking in gene networks. Attributed Dynamic Graph (ADG) contains multiple value-changed attributes on edges, such as the speed of a bus between two stations, and the price of the bus ticket in different time periods. The traditional methods for temporal path discovery in ADGs assume users only consider a single constraint on the attributes in their models, such as finding the fast route to reach the destination under the constraint of a given budget, which makes the path discovery problem simple though it still suffers expensive time cost. However, such an assumption is too strict in real applications, where users can specify multiple constraints, such as finding the fast route under the constraints of a given budget and the total number of stopovers. In such a situation, the temporal path discovery becomes more complicated as it subsumes the classical NP-Complete Multi-Constraint Path (MCP) problem, and thus the traditional methods cannot work for finding a new type of Temporal Path with Multiple Constraints (TPMC). In this paper, we propose a set of new Two-Pass approximation algorithms to bi-directionally search ADGs to find TPMC results. To the best of our knowledge, our Two-Pass algorithms are the first algorithms to support the discovery of the temporal paths with multiple constraints in ADGs. The experimental results on 12 real-world dynamic graphs demonstrate that our algorithms outperform the state-of-the-art methods in both efficiency and effectiveness.
Similar content being viewed by others
References
Anand, R., Chatterjee, S.: Tracking disease progression by searching paths in a temporal network of biological processes. PLoS One 12(4), 1–17 (2017)
Batz, G.V., Delling, D., Sanders, P., Vetter, C.: Effective indexing for approximate constrained shortest path queries on large road networks. In: Proceedings of the Meeting on Algorithm Engineering and Experiments, pp 97–105 (2009)
Dean, B.C.: Algorithms for minimum-cost paths in time-dependent networks with waiting policies. Networks 44(1), 41–46 (2004)
Delling, D.: Time-dependent sharc-routing. Algorithmica 60(1), 60–94 (2011)
Ding, B., Yu, J.X., Qin, L.: Finding time-dependent shortest paths over large graphs. In: EDBT, pp. 205–216 (2008)
Eckmann, J., Moses, E., Sergi, D.: Entropy of dialogues creates coherent structures in e-mail traffic. PNAS 101(40), 14333–14337 (2004)
Feng, G., Korkmaz, T.: Finding multi-constrained multiple shortest paths. IEEE Trans. Comput. 64(9), 2559–2572 (2015)
Kanoulas, E., Du, Y., Xia, T., Zhang, D.: Finding fastest paths on a road network with speed patterns. In: ICDE (2006)
Khan, A., Bhowmick, S., Bonchi, F.: Summarizing static and dynamic big graphs. In: VLDB, pp 1981–1984 (2017)
Korkmaz, T., Krunz, M.: Multi-constrained optimal path selection. In: INFOCOM, pp 834–843 (2001)
Kossinets, G., Kleinberg, J., Watts, D.: The structure of information pathways in a social communication network. In: KDD, pp 435–443 (2008)
Li, L., Hua, W., Du, X., Zhou, X.: Minimal on road time route scheduling on time-dependent graph. In: VLDB, pp 1274–1285 (2017)
Liu, Y., Li, Y., Zhang, Y.: Study of the logistics transportation vehicle terminal path optimization and algorithm based on gis. Appl. Mech. Mater. 644–650, 2249–2252 (2014)
Liu, G., Zheng, K., Wang, Y., Orgun, M.A., Liu, A., Zhao, L., Zhou, X.: Multi-constrained graph pattern matching in large-scale contextual social graphs. In: ICDE, pp 351–362 (2015)
Orda, A., Rom, R.: Shortest-path and minimum-delay algorithms in networks with time-dependent edge-length. JACM 37(3), 607–625 (1990)
Pan, R., Saramaki, J.: Path lengths, correlations, and centrality in temporal networks. Phys. Rev. E 84(2), 1577–1589 (2011)
Pugliese, L., Guerriero, F.: A survey of resource constrained shortest path problems: exact solution approaches. Networks 62(3), 183–200 (2013)
Rao, A. , Hero, A.O. III, States, D.J., Engel, J.D.: Inferring time-varying network topologies from gene expression data. EURASIP J. Bioinf. Syst. Biol. 2007, 1–12 (2007)
Rao, S.: Distributed systems: an algorithmic approach. IEEE 9(11), 3 (2008)
Sdol, E.: Temporal graphs. Phys. A: Stat. Mech. Appl. 346(346), 191–199 (2009)
Wang, S., Lin, W., Yang, Y., Xiao, X., Zhou, S.: Efficient route planning on public transportation networks: A labelling approach. In: SIGMOD, pp 967–982 (2015)
Wang, S., Xiao, X., Yang, Y., Lin, W.: Effective indexing for approximate constrained shortest path queries on large road networks. In: VLDB, pp 61–72 (2015)
Wu, Y., Zhou, C., Xiao, J., Kurths, J., Schellnhuber, H.: Evidence for a bimodal distribution in human communication. PNAS 107(44), 18803–18808 (2010)
Wu, H., Cheng, J., Huang, S., Ke, Y., Lu, Y., Xu, Y.: Path problems in temporal graphs. VLDB 7(9), 721–732 (2014)
Wu, H., Cheng, J., Ke, Y., Huang, S., Huang, Y., Wu, H.: Efficient algorithms for temporal path computation. IEEE TKDE 28(11), 2927–2942 (2016)
Wu, H., Huang, Y., Cheng, J., Li, J., Ke, Y.: Reachability and time-based path queries in temporal graphs. In: ICDE, pp 145–156 (2016)
Xuan, B., Ferreira, A., Jarry, A.: Computing shortest, fastest, and foremost journeys in dynamic networks. Int. J. Found. Comput. Sci. 14(02), 267–285 (2003)
Yang, Y., Gao, H., Yu, J.X., Li, J.: Finding the cost-optimal path with time constraint over time-dependent graphs. VLDB 7(9), 673–684 (2014)
Zhao, Z., Xia, H., Shang, M., Zhou, T.: Empirical analysis on the human dynamics of a large-scale short message communication system. Chin. Phys. Lett. 28 (6), 068901 (2011)
Author information
Authors and Affiliations
Corresponding authors
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix
Appendix
The proof of Theorem 1
Assume that the delivered temporal path \(p^{M}_{v_{s}, v_{d}}(t)\) is not feasible, and \(p^{M^{\prime }}_{v_{s}, v_{d}}(t)\) is a feasible temporal path. Then it must be true that \(\delta (p^{M}_{v_{s}, v_{d}}(t)) \leq \delta (p^{M^{\prime }}_{v_{s}, v_{t}}(t)\). In addition, we have \(\delta (p^{M^{\prime }}_{v_{s}, v_{d}}(t)) \leq K\) due to \({\Pi }^{j}(p^{M^{\prime }}_{v_{s}, v_{d}} (t)) \leq \lambda _{j}\) for 1 ≤ j ≤ K. Thus, we have \(\delta (p^{M}_{v_{s}, v_{d}}(t)) \leq K\). Assume \({\Pi }^{j}(p^{M}_{v_{s}, v_{d}}(t)) > \lambda _{j}\) for all j′s, then \(\delta (p^{M}_{v_{s}, v_{d}}(t)) > K\), which contradicts \(\delta (p^{M}_{v_{s}, v_{d}}(t)) \leq K\), so there is at least one j making \({\Pi }^{k}(p^{M}_{v_{s}, v_{d}}(t)) \leq \lambda _{j}\), then attribute (a) in Theorem 1 is proven. Assume that for at least one λj, we have \({\Pi }^{j}(p^{M}_{v_{s}, v_{d}}(t)) > \sqrt [\theta ]{K}\lambda _{j}\), so that \((\frac {{\Pi }^{j}(p^{M}_{v_{s}, v_{d}}(t))}{\lambda _{j}})^{\theta } > K\), which leads to \(\delta (p^{M}_{v_{s}, v_{d}}(t)) > K\). But this contradicts \(\delta (p^{M}_{v_{s}, v_{d}}(t)) \leq K\). Then, attribute (b) in Theorem 1 is proven. □
The proof of Corollary 1
Follows immediately from Theorem 1, \({\Pi }^{j}(p^{M}_{v_{s}, v_{d}}(t)) \leq \sqrt [\theta +\varepsilon ]{K}\lambda _{j} < \sqrt [\theta ]{K}\lambda _{j}\), for any ε > 0, 1 ≤ j ≤ K. □
The proof of Theorem 2
Assume \(p^{Back}_{v_{s}, v_{d}}(t^{\prime }_{s})\) consists of n + 2 vertices vs, v1,...,vn, vd. In the Forward Pass procedure, TPA-EA searches the decedents of vs and chooses v1 from these vertices when a combined temporal path from vs to vd via v1 is feasible and the current path from vs to v1 has the earliest arrival time. This step is repeated at all the vertices between v1 and vn until a temporal path \(p^{E}_{v_{s}, v_{d}}(t_{s})\) is identified. If at each search step, only one vertex of {v1,...,vn} can lead to a feasible combined temporal path, then \(p^{E}_{v_{s}, v_{d}}(t_{s})\) is the only feasible temporal path between vs and vd in the ADG, i.e., \(p^{E}_{v_{s}, v_{d}}(t_{s}) = p^{Back}_{v_{s}, v_{d}}(t^{\prime }_{s})\). Thus, \(end(p^{E}_{v_{s}, v_{d}}(t_{s})) = end(p^{Back}_{v_{s}, v_{d}}(t^{\prime }_{s}))\). Otherwise, if \(p^{E}_{v_{s}, v_{d}}(t_{s}) \neq p^{Back}_{v_{s}, v_{d}}(t^{\prime }_{s})\), this can lead to \(end(p^{E}_{v_{s}, v_{d}}(t_{s})) < end(p^{Back}_{v_{s}, v_{d}}(t^{\prime }_{s}))\) by minimizing the arrival time in all candidate vertices which have feasible combined temporal paths by using the Dijkstra-based algorithm. Therefore, Theorem 2 is proven. □
The proof of Theorem 3
Based on Theorem 2, for each distinct departure time of vs within [tα, tβ], TPA-F can deliver an EA-TPMC. Then at each departure time point t, \(end(p^{F}_{v_{s}, v_{d}}(t)) - start(p^{F}_{v_{s}, v_{d}}(t)) \leq end(p^{Back}_{v_{s},v_{d}}(t_{d})) - start(p^{Back}_{v_{s},v_{d}}(t_{d}))\). TPA-F selects the fastest path from all EA-TPMC results with the departure time point ts, and then \(end(p^{F}_{v_{s}, v_{d}}(t_{s})) - start(p^{F}_{v_{s},v_{d}} (t_{s})) \leq end(p^{F}_{v_{s}, v_{d}}(t)) - start(p^{Back}_{v_{s},v_{d}}(t_{d}))\). Thus, \(end(p^{F}_{v_{s}, v_{d}}(t_{s})) - start(p^{F}_{v_{s}, v_{d}} (t_{s})) \leq end(p^{Back}_{v_{s},v_{d}}(t_{d})) - start(p^{Back}_{v_{s},v_{d}}(t_{d}))\). Therefore, Theorem 3 is proven. □
The proof of Lemma 1
Suppose that within \([t_{v_{i}}, t_{\beta }]\), there exists another path \(p^{Back}_{v_{i}, v_{d}}(t^{\prime }_{i})\) from vi to vd, where \(\delta (p^{Back}_{v_{i}, v_{d}}(t^{\prime }_{i}))<\delta (p^{Back}_{v_{i}, v_{d}}(t_{v_{i}}))\). Since \(t^{\prime }_{i} \geq t_{v_{i}}\), we can have \(p^{Back}_{v_{k}, v_{d}}(t^{\prime }_{k})\) by replacing \(p^{Back}_{v_{i}, v_{d}}(t_{v_{i}})\) with \(p^{Back}_{v_{i}, v_{d}} (t^{\prime }_{i})\), where \(\delta (p^{Back}_{v_{k}, v_{d}}(t^{\prime }_{i}))<\delta (p^{Back}_{v_{k}, v_{d}}(t_{v_{k}}))\). But this contradicts the fact that \(p^{Back}_{v_{i}, v_{d}}(t_{v_{i}})\) is a path with the minimal objective function value. Therefore Lemma 1 is proven. □
The proof of Lemma 2
Let \(p^{Back}_{v_{i},v_{d}}(t^{\prime }_{i})\) be a suffix-subpath of \(p^{Back}_{v_{s},v_{d}}(t^{\prime }_{s})\). Since \(t_{i} \geq t^{\prime }_{i}\), we can use \(p^{Back}_{v_{i},v_{d}}(t_{i})\) to replace \(p^{Back}_{v_{i},v_{d}}(t^{\prime }_{i})\) to form a new temporal path as \(p^{Back}_{v_{s},v_{d}}(t_{s})\). As \(\delta (p^{Back}_{v_{i},v_{d}}(t_{i})) \leqslant \delta (p^{Back}_{v_{i},v_{d}}(t^{\prime }_{i}))\), \(\delta (p_{v_{s},v_{d}}(t_{s})) \leqslant \delta (p_{v_{s},v_{d}}(t^{\prime }_{s}))\), and thus \(p^{Back}_{v_{i},v_{d}}(t^{\prime }_{i})\) can be pruned without affecting δmin and \(\delta ^{L}_{min}\). Therefore Lemma 2 is proven. □
The proof of Lemma 3
Suppose \(p^{E}_{v_{s}, v_{i}}(t_{s})\) is not the EA-TPMC from vs to vi. Then we can have another path \(p^{E}_{v_{s}, v_{i}}(t^{\prime }_{s})\) that is the EA-TPMC. As \(end(p^{E}_{v_{s}, v_{i}}(t^{\prime }_{s})) < end(p^{E}_{v_{s}, v_{i}} (t_{s}))\), we can have \(p^{E}_{v_{s}, v_{d}}(t^{\prime }_{s})\) by combining \(p^{E}_{v_{s}, v_{i}}(t^{\prime }_{s})\) and the path from vi to vd in \(p^{E}_{v_{s}, v_{d}}(t_{s})\). Thus, \(end(p^{E}_{v_{s}, v_{d}}(t^{\prime }_{s})) < end(p^{E}_{v_{s}, v_{d}}(t_{s}))\), which contradicts that \(p^{E}_{v_{s}, v_{d}}(t_{s})\) is the EA-TPMC. Then Lemma 3 is proven. □
Rights and permissions
About this article
Cite this article
Zhao, A., Liu, G., Zheng, B. et al. Temporal paths discovery with multiple constraints in attributed dynamic graphs. World Wide Web 23, 313–336 (2020). https://doi.org/10.1007/s11280-019-00670-4
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11280-019-00670-4