We use cookies to improve your experience with our site.

通过分层标记图式回答增量更新图的可达性查询

Answering Reachability Queries on Incrementally Updated Graphs by Hierarchical Labeling Schema

  • 摘要: 我们提出了一个新的方案称为分层的标籤模式Hierarchical Labeling Schema(HLS)来回答在有向图的可达性查询。不同於现有主要针对静态有向无环图(DAG)的许多方法,我们的模式侧重於可以添加顶点或弧的有向循环图(DCG)。与许多传统的方法不同,HLS在构建索引时并不要求图是无环的。因此,它实际上可以被应用到DAG和DCG当中。当顶点或圆弧加到一个图时,HLS能够增量地更新索引,而不是每次重新计算索引,使它在运作时比起许多其他的方法更有效。HLS的基本概念是为一个图的每个顶点建立一颗树,以及将多颗树链接一起,以致每当有两个顶点,我们马上就可以透过适当的树来知道他们之间是否有一条路径。我们已经在合成的数据集和真实的数据集进行了广泛的实验。在索引构建时间,查询处理时间和空间消耗叁方面, 我们与两种最先进的方法,分别是路径树方法(path-tree method)和叁跳法(3-hop method) ,进行了一个模拟图在增量更新时的测试和比较,除此之外,我们亦与不同算法在处理静态图时进行了性能上的比较。我们的研究结果显示,HLS在实践中是具高度竞争力的,尤其是当图是经常更新的情况下特别有用。

     

    Abstract: We proposed a novel solution schema called the Hierarchical Labeling Schema (HLS) to answer reachability queries in directed graphs. Different from many existing approaches that focus on static directed acyclic graphs (DAGs), our schema focuses on directed cyclic graphs (DCGs) where vertices or arcs could be added to a graph incrementally. Unlike many of the traditional approaches, HLS does not require the graph to be acyclic in constructing its index. Therefore, it could, in fact, be applied to both DAGs and DCGs. When vertices or arcs are added to a graph, the HLS is capable of updating the index incrementally instead of re-computing the index from the scratch each time, making it more efficient than many other approaches in the practice. The basic idea of HLS is to create a tree for each vertex in a graph and link the trees together so that whenever two vertices are given, we can immediately know whether there is a path between them by referring to the appropriate trees. We conducted extensive experiments on both real-world datasets and synthesized datasets. We compared the performance of HLS, in terms of index construction time, query processing time and space consumption, with two state-of-the-art methodologies, the path-tree method and the 3-hop method. We also conducted simulations to model the situation when a graph is updated incrementally. The performance comparison of different algorithms against HLS on static graphs has also been studied. Our results show that HLS is highly competitive in the practice and is particularly useful in the cases where the graphs are updated frequently.

     

/

返回文章
返回