Lune

AAAI2024Top-tier venue

SAT-Based Algorithms for Regular Graph Pattern Matching

Miguel Terra-Neves, José Amaral, Alexandre Lemos, Rui Quintino, Pedro Resende, António Alegria

Abstract

Graph matching is a fundamental problem in pattern recognition, with many applications such as software analysis and computational biology. One well-known type of graph matching problem is graph isomorphism, which consists of deciding if two graphs are identical. Despite its usefulness, the properties that one may check using graph isomorphism are rather limited, since it only allows strict equality checks between two graphs. For example, it does not allow one to check complex structural properties such as if the target graph is an arbitrary length sequence followed by an arbitrary size loop. We propose a generalization of graph isomorphism that allows one to check such properties through a declarative specification. This specification is given in the form of a Regular Graph Pattern (ReGaP), a special type of graph, inspired by regular expressions, that may contain wildcard nodes that represent arbitrary structures such as variable-sized sequences or subgraphs. We propose a SAT-based algorithm for checking if a target graph matches a given ReGaP. We also propose a preprocessing technique for improving the performance of the algorithm and evaluate it through an extensive experimental evaluation on benchmarks from the CodeSearchNet dataset. * This is an extended version of a paper accepted for publication in the main technical track of the AAAI 2024 conference.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on2

  1. Automated Synthesis of Semantic Malware Signatures using Maximum SatisfiabilityYu Feng, Osbert Bastani, Ruben Martins, Isil Dillig et al.NDSS 2017 · 104 citations
  2. CCGraph: a PDG-based code clone detector with approximate graph matchingYue Zou, Bihuan Ban, Yinxing Xue, Yun XuASE 2020 · 46 citations

Related papers

  1. GuP: Fast Subgraph Matching by Guard-based PruningJunya Arai, Yasuhiro Fujiwara, Makoto OnizukaSIGMOD 2023 · 45 citations
  2. Efficient Hypergraph Pattern Matching via Match-and-Filter and Intersection ConstraintSiwoo Song, Wonseok Shin, Kunsoo Park, Giuseppe F. Italiano et al.ICDE 2026
  3. Neural Subgraph Isomorphism CountingXin Liu, Haojie Pan, Mutian He, Yangqiu Song et al.KDD 2020 · 70 citations
  4. On Structural Expressive Power of Graph TransformersWenhao Zhu, Tianyu Wen, Guojie Song, Liang Wang et al.KDD 2023 · 9 citations
  5. Extending Graph Patterns with ConditionsGrace Fan, Wenfei Fan, Yuanhao Li, Ping Lu et al.SIGMOD 2020 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines