<p><i>Graph Pattern Matching</i> (<i>GPM</i>) aims to discover matches in a graph <i>G</i> that satisfy a query pattern <i>C</i>. It is increasingly used in various real-world applications such as social network analysis and cyberattack detection. However, since <i>GPM</i> relies on subgraph isomorphism, its computation becomes intractable for large graphs. Moreover, the potentially exponential number of matches makes exhaustive inspection infeasible. To address this, the <i>diversified top</i>-<i>k</i> <i>GPM</i> (<Emphasis FontCategory="SansSerif">dtkGPM</Emphasis>) problem seeks to retrieve only the top-<i>k</i> most diversified matches for <i>C</i> in <i>G</i>. Existing solutions remain limited in terms of approximation guarantees, relevance expressiveness, and integration within commercial graph systems. This article investigates the <Emphasis FontCategory="SansSerif">dtkGPM</Emphasis> problem in the context of a practical query language (Cypher) and a real graph system (Neo4j). We formalize the problem using an expressive range of relevance criteria and prove its <Emphasis FontCategory="SansSerif">NP</Emphasis>-hardness. We then present three baseline algorithms: a fast heuristic with early termination, and two greedy-search methods offering a <InlineEquation ID="IEq1"> <EquationSource Format="TEX">\(\frac{1}{2}\)</EquationSource> <EquationSource Format="MATHML"><math> <mfrac> <mn>1</mn> <mn>2</mn> </mfrac> </math></EquationSource> </InlineEquation>-approximation ratio. While the heuristic is highly efficient, its quality can be suboptimal; conversely, the greedy approaches require computing all matches of <i>C</i> in <i>G</i>, which may be impractical. To overcome this limitation, we propose a local-search algorithm that preserves a <InlineEquation ID="IEq2"> <EquationSource Format="TEX">\((1 - \frac{2}{k})\)</EquationSource> <EquationSource Format="MATHML"><math> <mrow> <mo stretchy="false">(</mo> <mn>1</mn> <mo>-</mo> <mfrac> <mn>2</mn> <mi>k</mi> </mfrac> <mo stretchy="false">)</mo> </mrow> </math></EquationSource> </InlineEquation> approximation ratio. The key innovation lies in a query rewriting principle that avoids exhaustive match enumeration. Experimental results demonstrate that our local-search algorithm significantly outperforms existing approximations in both efficiency and scalability, while maintaining high solution quality. To our knowledge, this is the first approach to the <Emphasis FontCategory="SansSerif">dtkGPM</Emphasis> problem that achieves a balanced trade-off between efficiency and approximation guarantee, with seamless integration into real-world graph applications.</p>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

A scalable local-search approximation for diversity-aware querying in large graphs

  • Houari Mahfoud

摘要

Graph Pattern Matching (GPM) aims to discover matches in a graph G that satisfy a query pattern C. It is increasingly used in various real-world applications such as social network analysis and cyberattack detection. However, since GPM relies on subgraph isomorphism, its computation becomes intractable for large graphs. Moreover, the potentially exponential number of matches makes exhaustive inspection infeasible. To address this, the diversified top-k GPM (dtkGPM) problem seeks to retrieve only the top-k most diversified matches for C in G. Existing solutions remain limited in terms of approximation guarantees, relevance expressiveness, and integration within commercial graph systems. This article investigates the dtkGPM problem in the context of a practical query language (Cypher) and a real graph system (Neo4j). We formalize the problem using an expressive range of relevance criteria and prove its NP-hardness. We then present three baseline algorithms: a fast heuristic with early termination, and two greedy-search methods offering a \(\frac{1}{2}\) 1 2 -approximation ratio. While the heuristic is highly efficient, its quality can be suboptimal; conversely, the greedy approaches require computing all matches of C in G, which may be impractical. To overcome this limitation, we propose a local-search algorithm that preserves a \((1 - \frac{2}{k})\) ( 1 - 2 k ) approximation ratio. The key innovation lies in a query rewriting principle that avoids exhaustive match enumeration. Experimental results demonstrate that our local-search algorithm significantly outperforms existing approximations in both efficiency and scalability, while maintaining high solution quality. To our knowledge, this is the first approach to the dtkGPM problem that achieves a balanced trade-off between efficiency and approximation guarantee, with seamless integration into real-world graph applications.