• •    

TG-TL:时序图最短路径计数查询算法

李源1,林秋兰1,陈安之1,宋威1,杨国利2,王国仁3   

  1. 1. 北方工业大学
    2. 北京大数据先进技术研究院
    3. 北京理工大学计算机学院
  • 收稿日期:2023-08-22 修回日期:2023-11-08 发布日期:2023-12-18
  • 通讯作者: 林秋兰
  • 基金资助:
    国家自然科学青年基金项目;国家自然科学基金面上项目;国家自然科学青年基金项目

TG-TL:Shortest Path Counting Query Algorithm on Temporal Graphs

  • Received:2023-08-22 Revised:2023-11-08 Online:2023-12-18

摘要: 最短路径计数是图计算中的一个重要研究问题,目的是查询顶点间的最短路径个数,在现实数据分析中具有广泛应用。目前越来越多的网络可以建模为时序图,但还没有针对时序图最短路径计数查询问题的研究工作。由于时序图增加了时间信息,导致静态图中最短路径计数方法不再适用于时序图,并且在大规模时序图上进行查询更具有挑战性。为了解决时序图最短路径计数问题,提出了基于时序树分解构建索引的最短路径计数查询算法。该算法包括三个阶段,首先根据时序图的属性设计时序树分解算法,将时序图转化为树结构;然后根据凸路径定义在时序树分解上构建TG-TL(Temporal Graphs-Tree Label)索引;最后利用索引和树分解的结构信息进行最短路径数查询。在4个真实数据集上的实验验证本文提出的算法在时序图最短路径计数问题上的高效性和有效性。

关键词: 时序图, 树分解, 索引, 最短路径, 最短路径计数

Abstract: The shortest path count is an important research problem in graph computing, which aims to query the number of shortest paths between vertices, which is widely used in real-world data analysis. At present, more and more networks can be modeled as temporal graphs, but there is no research work on the shortest path count query problem of temporal graphs. Due to the addition of time information to temporal graphs, the shortest path counting method in static graphs is no longer suitable for temporal graphs, and querying on large-scale temporal graphs is more challenging. In order to solve the shortest path count problem of temporal graphs, a shortest path count query algorithm based on temporal tree decomposition is proposed. The algorithm includes three stages, firstly, the temporal tree decomposition algorithm is designed according to the attributes of the temporal graphs, and the temporal graphs is transformed into a tree structure; Then, according to the convex path definition, the TG-TL (Temporal Graphs-Tree Label) index is constructed on the temporal tree decomposition. Finally, the structural information of index and tree decomposition is used to query the shortest number of paths. Experiments on four real datasets verify the efficiency and effectiveness of the proposed algorithm on the shortest path counting problem of temporal graphs.

Key words: temporal graphs, tree decomposition, index, shortest path, shortest path counting

中图分类号: