arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.08453cs.DC
收藏

基于约束检查的元数据图可伸缩模式匹配

Scalable Pattern Matching in Metadata Graphs via Constraint Checking

Tahsin Reza, Hassan Halawa, Matei Ripeanu, Geoffrey Sanders, Roger Pearce

摘要:

模式匹配是回答复杂图查询的基本工具。不幸的是,现有的解决方案具有有限的能力:它们不能扩展以处理大型图和/或仅支持一组受限的搜索模板或使用场景。我们提出了一个基于约束检查的模式匹配算法流水线。关键的直觉是,参与匹配的每个顶点或边必须满足搜索模板隐式指定的一组约束。我们提出的流水线,生成这些约束,并迭代它们,以消除所有的顶点和边,不参与任何匹配,并减少背景图的子图,这是所有匹配的并集。可以在这个带注释的简化图上执行附加分析,例如完全匹配枚举。此外,一个顶点为中心的公式约束检查算法存在,这使得它可以利用现有的高性能,顶点为中心的图形处理框架。这项工作的主要贡献是设计以下的约束检查方法的精确匹配和实验评估。我们表明,所提出的技术:(i)使高度可扩展的模式匹配在标记的图形,(ii)支持任意模式与100%的精度,(iii)始终选择所有的顶点和边参与匹配,从而提供100%的召回,(iv)支持一组流行的数据分析方案。我们在开源的异步图处理框架HavoqGT上实现了我们的方法,并通过大规模真实世界的强和弱缩放实验证明了它的优势(多达2570亿条边)和合成(多达4.4万亿条边)分别标记的图,并在规模(1,024个节点/36,864个核心),数量级大于过去用于类似问题的数量级。

英文摘要:

Pattern matching is a fundamental tool for answering complex graph queries. Unfortunately, existing solutions have limited capabilities: they do not scale to process large graphs and/or support only a restricted set of search templates or usage scenarios. We present an algorithmic pipeline that bases pattern matching on constraint checking. The key intuition is that each vertex or edge participating in a match has to meet a set of constrains implicitly specified by the search template. The pipeline we propose, generates these constraints and iterates over them to eliminate all the vertices and edges that do not participate in any match, and reduces the background graph to a subgraph which is the union of all matches. Additional analysis can be performed on this annotated, reduced graph, such as full match enumeration. Furthermore, a vertex-centric formulation for constraint checking algorithms exists, and this makes it possible to harness existing high-performance, vertex-centric graph processing frameworks. The key contribution of this work is a design following the constraint checking approach for exact matching and its experimental evaluation. We show that the proposed technique: (i) enables highly scalable pattern matching in labeled graphs, (ii) supports arbitrary patterns with 100% precision, (iii) always selects all vertices and edges that participate in matches, thus offering 100% recall, and (iv) supports a set of popular data analysis scenarios. We implement our approach on top of HavoqGT, an open-source asynchronous graph processing framework, and demonstrate its advantages through strong and weak scaling experiments on massive scale real-world (up to 257 billion edges) and synthetic (up to 4.4 trillion edges) labeled graphs respectively, and at scales (1,024 nodes / 36,864 cores), orders of magnitude larger than used in the past for similar problems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑