The Glasgow Subgraph Solver: Using Constraint Programming to Tackle Hard Subgraph Isomorphism Problem Variants
Open accessThe DOI matches its Crossref record; 29 of the 29 references it cites were found in a registry or an index.
Abstract
The Glasgow Subgraph Solver provides an implementation of state of the art algorithms for subgraph isomorphism problems. It combines constraint programming concepts with a variety of strong but fast domain-specific search and inference techniques, and is suitable for use on a wide range of graphs, including many that are found to be computationally hard by other solvers. It can also be equipped with side constraints, and can easily be adapted to solve other subgraph matching problem variants. We outline its key features from the view of both users and algorithm developers, and discuss future directions.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The cited source says what the claim attributes to it.
In the citing paper
“We use the powerful Glasgow Subgraph Solver 70 for this mapping.”
From Beyond-classical computation in quantum simulation (2025) · cites this paper as [70]
The cited source says what the claim attributes to it.
In the citing paper
“Although there are graph-based approaches that are potentially less vulnerable to such attacks, they are not feasible in practice [24] due to the NP nature of determining subgraph isomorphism [25,29,45].”
From Detecting Automatic Software Plagiarism via Token Sequence Normalization (2024) · cites this paper as [29]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
A (sub)graph isomorphism algorithm for matching large graphs
Cordella, L. P., Foggia, P., Sansone, C., & Vento, M. (2004) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2004.75 · Cited by 1,477 · cited 1×
“This has encouraged the development of practical subgraph isomorphism algorithms, which fall into two categories: those based upon backtracking and connectivity [6–8], and those based upon constraint programming [3,4,15,18,25].”
MethodModulation of Genetic Associations with Serum Urate Levels by Body-Mass-Index in Humans
Huffman, J. E., Albrecht, E., Teumer, A., Mangino, M., Kapur, K., Johnson, T., Kutalik, Z., Pirastu, N., Pistis, G., Lopez, L. M., et al. (2015) · PLOS ONE · doi:10.1371/journal.pone.0119752 · Cited by 1,227
A filtering algorithm for constraints of difference in CSPs
Régin, J.-C. (1994) · National Conference on Artificial Intelligence · Cited by 873
Sims, C. C. (1970) · Elsevier eBooks · doi:10.1016/b978-0-08-012975-4.50020-5 · Cited by 375 · cited 1×
“An implementation of the Schreier-Sims algorithm [24] which has no costly external dependencies would make this approach more practical.”
MethodA subgraph isomorphism algorithm and its application to biochemical data
Bonnici, V., Giugno, R., Pulvirenti, A., Shasha, D., & Ferro, A. (2013) · BMC Bioinformatics · doi:10.1186/1471-2105-14-s7-s13 · Cited by 219 · cited 2×
“…problems are NP-complete; despite this, subgraph isomorphism algorithms are widely used in practice, including for model checking [23], for law enforcement [9], in biological applications [1,6,20], for compiler implementation [5], in designing mechanical locks [27], and inside graph databases [19].”
MethodBiomolecular network motif counting and discovery by color coding
Alon, N., Dao, P., Hajirasouliha, I., Hormozdiari, F., & Sahinalp, S. C. (2008) · Bioinformatics · doi:10.1093/bioinformatics/btn163 · Cited by 214 · cited 2×
“Some applications involve counting occurrences of many different kinds of small graph [1,9,20], and so it”
BackgroundMethodAllDifferent-based filtering for subgraph isomorphism
Solnon, C. (2010) · Artificial Intelligence · doi:10.1016/j.artint.2010.05.002 · Cited by 196 · cited 2×
“This has encouraged the development of practical subgraph isomorphism algorithms, which fall into two categories: those based upon backtracking and connectivity [6–8], and those based upon constraint programming [3,4,15,18,25].”
BackgroundMethodSolving subgraph isomorphism problems with constraint programming
Zampelli, S., Deville, Y., & Solnon, C. (2009) · Constraints · doi:10.1007/s10601-009-9074-3 · Cited by 115 · cited 1×
“The solver uses even stronger filtering, based upon a result by Zampelli et al. [28], which looks at the neighbourhood degree sequence of vertices.”
MethodIntroducing VF3: A New Algorithm for Subgraph Isomorphism
Carletti, V., Foggia, P., Saggese, A., & Vento, M. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-58961-9_12 · Cited by 101 · cited 1×
“This has encouraged the development of practical subgraph isomorphism algorithms, which fall into two categories: those based upon backtracking and connectivity [8, 6, 7], and those based upon”
MethodLocally constrained graph homomorphisms—structure, complexity, and applications
Fiala, J., & Kratochvíl, J. (2008) · Computer Science Review · doi:10.1016/j.cosrev.2008.06.001 · Cited by 80 · cited 1×
“In some applications this restriction can be relaxed: for example, we may prefer local injectivity (no two vertices that share a neighbour are mapped to the same vertex) [12], or even to find a homomorphism, where there are no injectivity requirements at all.”
BackgroundEfficient Graph Rewriting and Its Implementation
(1995) · Lecture notes in computer science · doi:10.1007/bfb0031909 · Cited by 79 · cited 1×
“Another potential application area is inside graph rewriting systems [10].”
BackgroundWhen Subgraph Isomorphism is Really Hard, and Why This Matters for Graph Databases
McCreesh, C., Prosser, P., Solnon, C., & Trimble, J. (2018) · Journal of Artificial Intelligence Research · doi:10.1613/jair.5768 · Cited by 73 · cited 4×
“Presently, the constraint programming approaches give spectacularly better performance on hard instances [19,26], although simple backtrackers will often (but inconsistently) run faster on some very easy instances due to lower overheads and faster startup costs.”
BackgroundMethodInfluentialSelf-citationSevegnani, M., & Calder, M. (2015) · Theoretical Computer Science · doi:10.1016/j.tcs.2015.02.011 · Cited by 66 · cited 1×
“…the input, these problems are NP-complete; despite this, subgraph isomorphism algorithms are widely used in practice, including for model checking [23], for law enforcement [9], in biological applications [1,6,20], for compiler implementation [5], in designing mechanical locks [27], and inside…”
MethodA Parallel, Backjumping Subgraph Isomorphism Algorithm Using Supplemental Graphs
McCreesh, C., & Prosser, P. (2015) · Lecture notes in computer science · doi:10.1007/978-3-319-23219-5_21 · Cited by 58 · cited 4×
“An early precursor to the Glasgow Subgraph Solver [18] strengthened this result, using instead the fact that subgraph isomorphisms preserve paths: if there are exactly k paths of length exactly (cid:2) between two vertices in a pattern graph, then there must be at least k paths of length exactly…”
BackgroundMethodInfluentialSelf-citationPortfolios of Subgraph Isomorphism Algorithms
Kotthoff, L., McCreesh, C., & Solnon, C. (2016) · Lecture notes in computer science · doi:10.1007/978-3-319-50349-3_8 · Cited by 47 · cited 3×
“We have previously shown that it can be beneficial to employ a simple connectivity-based algorithm as a presolver [15].”
MethodSelf-citationNogood Recording from Restarts
Lecoutre, C., Saïs, L., Tabary, S., & Vidal, V. (2006) · HAL · Cited by 46
Justifying All Differences Using Pseudo-Boolean Reasoning
Elffers, J., Gocht, S., McCreesh, C., & Nordström, J. (2020) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v34i02.5507 · Cited by 41 · cited 1×
“Recently, Elffers et al. [11] introduced a more flexible form of proof logging, that we believe is better suited for algorithms that perform strong inference.”
BackgroundSelf-citationBetween Subgraph Isomorphism and Maximum Common Subgraph
Hoffmann, R., McCreesh, C., & Reilly, C. (2017) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v31i1.11137 · Cited by 40 · cited 1×
“Some problems also involve wild-cards, not just on labels, but on pattern vertices; work on k -less subgraph isomorphism [14] may prove useful for continuing to allow powerful inference when wildcards are present.”
BackgroundSelf-citationSequential and Parallel Solution-Biased Search for Subgraph Algorithms
Archibald, B., Dunlop, F., Hoffmann, R., McCreesh, C., Prosser, P., & Trimble, J. (2019) · Lecture notes in computer science · doi:10.1007/978-3-030-19212-9_2 · Cited by 36 · cited 3×
“Combined with a small amount of heavily biased randomness in how branching is carried out, this avoids a strong commitment to early branching choices, which are most difficult for a heuristic to get right [3].”
BackgroundMethodSelf-citationRedmond, U., & Cunningham, P. (2013) · IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM) · doi:10.1145/2492517.2492586 · Cited by 35 · cited 2×
“Richer labelling rules may be necessary in some applications, such as in temporal graphs when we care about “before/after” labels rather than exact matches [21].”
BackgroundExperimental Evaluation of Subgraph Isomorphism Solvers
Solnon, C. (2019) · Lecture notes in computer science · doi:10.1007/978-3-030-20081-7_1 · Cited by 35 · cited 3×
“Presently, the constraint programming approaches give spectacularly better performance on hard instances [19,26], although simple backtrackers will often (but inconsistently) run faster on some very easy instances due to lower overheads and faster startup costs.”
BackgroundOn the subgraph epimorphism problem
Gay, S., Fages, F., Martinez, T., Soliman, S., & Solnon, C. (2013) · Discrete Applied Mathematics · doi:10.1016/j.dam.2013.08.008 · Cited by 33 · cited 1×
“There are other problems involving finding mappings between subgraphs, such as a surjective variant [13].”
BackgroundEvent Networks and the Identification of Crime Pattern Motifs
Davies, T., & Marchione, E. (2015) · PLoS ONE · doi:10.1371/journal.pone.0143638 · Cited by 30 · cited 2×
“Some applications involve counting occurrences of many different kinds of small graph [1,9,20], and so it would be useful if solvers could detect when they were in an “easy” case and switch algorithms, rather than relying upon end users to do this.”
BackgroundMethodScoring-Based Neighborhood Dominance for the Subgraph Isomorphism Problem
Audemard, G., Lecoutre, C., Modeliar, M. S., Gonçalves, G., & Porumbel, D. C. (2014) · Lecture notes in computer science · doi:10.1007/978-3-319-10428-7_12 · Cited by 28
Counting motifs in dynamic networks
Mukherjee, K., Hasan, M. M., Boucher, C. A., & Kahveci, T. (2018) · BMC Systems Biology · doi:10.1186/s12918-018-0533-6 · Cited by 21 · cited 2×
“Some applications involve counting occurrences of many different kinds of small graph [1,9,20], and so it would be useful if solvers could detect when they were in an “easy” case and switch algorithms, rather than relying upon end users to do this.”
BackgroundMethodArchibald, B., Calder, M., & Sevegnani, M. (2020) · Lecture notes in computer science · doi:10.1007/978-3-030-51372-6_1 · Cited by 21 · cited 1×
“However, when patterns are numerous or large and complex, or when side constraints are involved [2], it may be more practical to use a general purpose solver than a dedicated algorithm for each special case.”
BackgroundIncreasing Nogoods in Restart-Based Search
Lee, J. H. M., Schulte, C., & Zhu, Z. (2016) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v30i1.10437 · Cited by 17 · cited 1×
“Rather than using simple backtracking, the solver employs restarts and nogood recording [16,17]: the solver runs for a small amount of time, and then restarts from the beginning, remembering not to revisit any part of the search space which has already been explored.”
MethodModeling Universal Instruction Selection
Blindell, G. H., Lozano, R. C., Carlsson, M., & Schulte, C. (2015) · Lecture notes in computer science · doi:10.1007/978-3-319-23219-5_42 · Cited by 15 · cited 1×
“…problems are NP-complete; despite this, subgraph isomorphism algorithms are widely used in practice, including for model checking [23], for law enforcement [9], in biological applications [1,6,20], for compiler implementation [5], in designing mechanical locks [27], and inside graph databases [19].”
MethodThe Secret Life of Keys: On the Calculation of Mechanical Lock Systems
Vömel, C., Lorenzi, F. D., Beer, S., & Fuchs, E. (2017) · SIAM Review · doi:10.1137/15m1030054 · Cited by 9 · cited 2×
“…problems are NP-complete; despite this, subgraph isomorphism algorithms are widely used in practice, including for model checking [23], for law enforcement [9], in biological applications [1,6,20], for compiler implementation [5], in designing mechanical locks [27], and inside graph databases [19].”
BackgroundMethod
Cited by
Beyond-classical computation in quantum simulation
King, A. D., Nocera, A., Rams, M. M., Dziarmaga, J., Wiersema, R., Bernoudy, W., Raymond, J., Kaushal, N., Heinsdorf, N., Harris, R., et al. (2025) · Science · doi:10.1126/science.ado6285 · Cited by 138
Versatile Equivalences: Speeding up Subgraph Query Processing and Subgraph Matching
Kim, H., Choi, Y.-Y., Park, K., Lin, X., Hong, S.-H., & Han, W.-S. (2021) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3448016.3457265 · Cited by 112
“In artificial intelligence, Glasgow subgraph solver (Glasgow) [25] is optimized specifically for subgraph isomorphism, but it also offers subgraph matching as well.”
BackgroundMethodInfluentialGuP: Fast Subgraph Matching by Guard-based Pruning
Arai, J., Fujiwara, Y., & Onizuka, M. (2023) · Proceedings of the ACM on Management of Data · doi:10.1145/3589312 · Cited by 62
“Although a nogood is a known concept in the field of constraint programming, few studies [26, 27] have adapted it to subgraph matching.”
BackgroundAn Overview of Data Extraction From Invoices
Saout, T., Lardeux, F., & Saubion, F. (2024) · IEEE Access · doi:10.1109/access.2024.3360528 · Cited by 47
“Solvers, such as the Glasgow solver [87] are available to solve this problem as well as efficient algorithms [127] including recent quantum search algorithms [84].”
MethodFast subgraph query processing and subgraph matching via static and dynamic equivalences
Kim, H., Choi, Y.-Y., Park, K., Lin, X., Hong, S.-H., & Han, W.-S. (2022) · The VLDB Journal · doi:10.1007/s00778-022-00749-x · Cited by 46
Metadata
- Authors
- McCreesh, C., Prosser, P., & Trimble, J.
- Affiliations
- University of Glasgow (GB)
- Corresponding author
- McCreesh, Ciaran
- Venue
- Lecture Notes in Computer Science
- Publisher
- Springer International Publishing
- Published
- 2020
- Pages
- 316-324
- ISSN
- 0302-9743 (ISSN-L)
- 1611-3349
- PMC
- PMC7314700
- OpenAlex
- W3025380722
- Cited by
- 57
- References
- 29
- Citations by year
- 2026: 4 · 2025: 10 · 2024: 16 · 2023: 12 · 2022: 6 · 2021: 8 · 2020: 1
- FWCI
- 2.08
- Type
- conference paper
- Language
- en
- Open access
- green
- www.ncbi.nlm.nih.gov
- Licence
- www.springernature.com/gp/researchers/text-and-data-mining (tdm)
- www.springernature.com/gp/researchers/text-and-data-mining (vor)
- Locations
- Lecture notes in computer science (publishedVersion)
- PubMed Central (publishedVersion)
- ENLIGHTEN (Jurnal Bimbingan dan Konseling Islam) (submittedVersion, cc-by-sa)
- Funders
- Engineering and Physical Sciences Research Council (1804156, EP/P026842/1)
- Topics
- Physical Sciences › Computer Science › Computational Theory and Mathematics › Graph Theory and Algorithms
- Physical Sciences › Computer Science › Artificial Intelligence › Constraint Satisfaction and Optimization
- Physical Sciences › Computer Science › Computational Theory and Mathematics › Advanced Graph Theory Research
- Keywords
- subgraph isomorphism, subgraph matching, constraint programming, domain-specific search, inference techniques, side constraints, graph algorithms
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.