{"type":"ScholarlyArticle","title":"Solving Graph Homomorphism and Subgraph Isomorphism Problems Faster Through Clique Neighbourhood Constraints","authors":[{"name":"Sonja Kraiczy","slug":"sonja-kraiczy","given":"Sonja","family":"Kraiczy","affiliation":"University of Oxford"},{"name":"Ciaran McCreesh","slug":"ciaran-mccreesh","given":"Ciaran","family":"McCreesh","affiliation":"University of Glasgow"}],"abstract":"Graph homomorphism problems involve finding adjacency-preserving mappings between two given graphs.  Although theoretically hard, these problems can often be solved in practice using constraint programming algorithms. We show how techniques from the state-of-the-art in subgraph isomorphism solving can be applied to broader graph homomorphism problems, and introduce a new form of filtering based upon clique-finding. We demonstrate empirically that this filtering is effective for the locally injective graph homomorphism and subgraph isomorphism problems, and gives the first practical constraint programming approach to finding general graph homomorphisms.","doi":"10.24963/ijcai.2021/193","url":"https://ijcai.org/proceedings/2021/193","pdf":"https://ijcai.org/proceedings/2021/0193.pdf","markdown":"https://ijcai.org/proceedings/2021/193.md","bibtex":"https://ijcai.org/proceedings/2021/bibtex/193","volume":{"slug":"2021","title":"Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence","short_title":"IJCAI 2021","url":"https://ijcai.org/proceedings/2021/","year":2021,"location":"Montreal","dates":"19-27 August 2021","editors":"Zhi-Hua Zhou","isbn":"978-0-9992411-9-6","publisher":"International Joint Conferences on Artificial Intelligence Organization","doi_prefix":"10.24963/ijcai.2021"},"section":"Constraints and SAT","track":"Main Track","number":193,"pages":{"first":1396,"last":1402},"keywords":["Constraints and SAT: Constraints: Modeling, Solvers, Applications","Constraints and SAT: Constraint Satisfaction"],"videos":[],"references":[{"position":1,"raw":"[Archibald et al., 2019] Blair Archibald, Fraser Dunlop, Ruth Hoffmann, Ciaran McCreesh, Patrick Prosser, and James Trimble. Sequential and parallel solution-biased search for subgraph algorithms. In Integration of Con- straint Programming, Artificial Intelligence, and Opera- tions Research -16th International Conference, CPAIOR 2019, Proceedings, 2019.","title":"Sequential and parallel solution-biased search for subgraph algorithms","authors":"Blair Archibald, Fraser Dunlop, Ruth Hoffmann, Ciaran Mccreesh, Patrick Prosser, James Trimble","year":"2019","venue":"Integration of Constraint Programming, Artificial Intelligence, and Operations Research -16th International Conference, CPAIOR 2019, Proceedings","doi":null,"url":null,"internal_url":null},{"position":2,"raw":"[Audemard et al., 2014] Gilles Audemard, Christophe Lecoutre, Mouny Samy Modeliar, Gilles Goncalves, and Daniel Cosmin Porumbel. Scoring-based neighborhood dominance for the subgraph isomorphism problem. In Principles and Practice of Constraint Programming - 20th International Conference, CP 2014, 2014.","title":"Scoring-based neighborhood dominance for the subgraph isomorphism problem","authors":"Gilles Audemard, Christophe Lecoutre, Mouny Samy Modeliar, Gilles Goncalves, Daniel Cosmin Porumbel","year":"2014","venue":"Principles and Practice of Constraint Programming -20th International Conference","doi":null,"url":null,"internal_url":null},{"position":3,"raw":"[Baget, 2005] Jean-Franc ¸ois Baget. RDF entailment as a graph homomorphism. In The Semantic Web -ISWC 2005, 4th International Semantic Web Conference, ISWC 2005, volume 3729 of LNCS, pages 82-96. Springer, 2005.","title":"RDF entailment as a graph homomorphism","authors":"Jean-Franc ¸ois Baget, Baget","year":"2005","venue":"The Semantic Web -ISWC 2005, 4th International Semantic Web Conference, ISWC 2005","doi":null,"url":null,"internal_url":null},{"position":4,"raw":"[Batsyn et al., 2014] Mikhail Batsyn, Boris Goldengorin, Evgeny Maslov, and Panos M. Pardalos. Improvements to MCS algorithm for the maximum clique problem. J. Comb. Optim., 27(2):397-416, 2014.","title":"Improvements to MCS algorithm for the maximum clique problem","authors":"Mikhail Batsyn, Boris Goldengorin, Evgeny Maslov, Panos M Pardalos","year":"2014","venue":"J. Comb. Optim","doi":null,"url":null,"internal_url":null},{"position":5,"raw":"[Blindell et al., 2015] Gabriel Hjort Blindell, Roberto Castañeda Lozano, Mats Carlsson, and Christian Schulte. Modeling universal instruction selection. In Principles and Practice of Constraint Programming -21st International Conference, CP 2015, 2015.","title":"Modeling universal instruction selection","authors":"Roberto Castañeda Gabriel Hjort Blindell, Mats Lozano, Christian Carlsson, Schulte","year":"2015","venue":"Principles and Practice of Constraint Programming -21st International Conference","doi":null,"url":null,"internal_url":null},{"position":6,"raw":"[Bonnici et al., 2013] Vincenzo Bonnici, Rosalba Giugno, Alfredo Pulvirenti, Dennis E. Shasha, and Alfredo Ferro. A subgraph isomorphism algorithm and its application to biochemical data. BMC Bioinformatics, 14(S-7):S13, 2013.","title":"A subgraph isomorphism algorithm and its application to biochemical data","authors":"Vincenzo Bonnici, Rosalba Giugno, Alfredo Pulvirenti, Dennis E Shasha, Alfredo Ferro","year":"2013","venue":"BMC Bioinformatics","doi":null,"url":null,"internal_url":null},{"position":7,"raw":"[Carletti et al., 2017] Vincenzo Carletti, Pasquale Foggia, Alessia Saggese, and Mario Vento. Introducing VF3: A new algorithm for subgraph isomorphism. In Graph-Based Representations in Pattern Recognition -11th IAPR-TC- 15 International Workshop, GbRPR 2017, volume 10310 of LNCS, 2017.","title":"Introducing VF3: A new algorithm for subgraph isomorphism","authors":"Vincenzo Carletti, Pasquale Foggia, Alessia Saggese, Mario Vento","year":"2017","venue":"Graph-Based Representations in Pattern Recognition -11th IAPR-TC-15 International Workshop","doi":null,"url":null,"internal_url":null},{"position":8,"raw":"[Chaplick et al., 2015] Steven Chaplick, Jirí Fiala, Pim van 't Hof, Daniël Paulusma, and Marek Tesar. Locally con- strained homomorphisms on graphs of bounded treewidth and bounded degree. Theor. Comput. Sci., 590:86-95, 2015.","title":"Locally constrained homomorphisms on graphs of bounded treewidth and bounded degree","authors":"Steven Chaplick, Jirí Fiala, Pim Van 't Hof, Daniël Paulusma, Marek Tesar","year":"2015","venue":"Theor. Comput. Sci","doi":null,"url":null,"internal_url":null},{"position":9,"raw":"[Corby and Faron-Zucker, 2007] Olivier Corby and Cather- ine Faron-Zucker. Implementation of SPARQL query lan- guage based on graph homomorphism. In Conceptual Structures: Knowledge Architectures for Smart Applica- tions, 15th International Conference on Conceptual Struc- tures, ICCS 2007, volume 4604 of LNCS. Springer, 2007.","title":"Implementation of SPARQL query language based on graph homomorphism","authors":"Corby, Faron-Zucker ;, Catherine Faron-Zucker","year":"2007","venue":"Conceptual Structures: Knowledge Architectures for Smart Applications, 15th International Conference on Conceptual Structures, ICCS 2007","doi":null,"url":null,"internal_url":null},{"position":10,"raw":"[Cordella et al., 2004] Luigi P. Cordella, Pasquale Foggia, Carlo Sansone, and Mario Vento. A (sub)graph isomor- phism algorithm for matching large graphs. IEEE Trans. Pattern Anal. Mach. Intell., 26(10):1367-1372, 2004.","title":"A (sub)graph isomorphism algorithm for matching large graphs","authors":"Luigi P Cordella, Pasquale Foggia, Carlo Sansone, Mario Vento","year":"2004","venue":"IEEE Trans. Pattern Anal. Mach. Intell","doi":null,"url":null,"internal_url":null},{"position":11,"raw":"[Dyer and Greenhill, 2000] Martin E. Dyer and Catherine S. Greenhill. The complexity of counting graph homomor- phisms. Random Struct. Algorithms, 17(3-4):260-289, 2000.","title":"The complexity of counting graph homomorphisms","authors":"Martin E Dyer, Catherine S Greenhill","year":"2000","venue":"Random Struct. Algorithms","doi":null,"url":null,"internal_url":null},{"position":12,"raw":"[Ehrlich and Rarey, 2011] Hans-Christian Ehrlich and Matthias Rarey. Maximum common subgraph isomor- phism algorithms and their applications in molecular science: a review. Wiley Interdisciplinary Reviews: Computational Molecular Science, 1(1):68-79, 2011.","title":"Maximum common subgraph isomorphism algorithms and their applications in molecular science: a review","authors":"Rarey ; Hans-Christian Ehrlich, Matthias Ehrlich, Rarey","year":"2011","venue":"Wiley Interdisciplinary Reviews: Computational Molecular Science","doi":null,"url":null,"internal_url":null},{"position":13,"raw":"[Fan et al., 2010] Wenfei Fan, Jianzhong Li, Shuai Ma, Hongzhi Wang, and Yinghui Wu. Graph homomorphism revisited for graph matching. Proc. VLDB Endow., 3(1), 2010.","title":"Graph homomorphism revisited for graph matching","authors":"Wenfei Fan, Jianzhong Li, Shuai Ma, Hongzhi Wang, Yinghui Wu","year":"2010","venue":"Proc. VLDB Endow","doi":null,"url":null,"internal_url":null},{"position":14,"raw":"[Fiala and Kratochvíl, 2008] Jirí Fiala and Jan Kratochvíl. Locally constrained graph homomorphisms -structure, complexity, and applications. Comput. Sci. Rev., 2(2):97- 111, 2008.","title":"Jirí Fiala and Jan Kratochvíl. Locally constrained graph homomorphisms -structure, complexity, and applications","authors":"Kratochvíl Fiala","year":"2008","venue":"Comput. Sci. Rev","doi":null,"url":null,"internal_url":null},{"position":15,"raw":"[Fiala et al., 2001] Jirí Fiala, Ton Kloks, and Jan Kratochvíl. Fixed-parameter complexity of λ-labelings. Discret. Appl. Math., 113(1):59-72, 2001.","title":"Fixed-parameter complexity of λ-labelings","authors":"Fiala","year":"2001","venue":"Discret. Appl. Math","doi":null,"url":null,"internal_url":null},{"position":16,"raw":"[Foggia et al., 2014] Pasquale Foggia, Gennaro Percannella, and Mario Vento. Graph matching and learning in pattern recognition in the last 10 years. IJPRAI, 28(1), 2014.","title":"Graph matching and learning in pattern recognition in the last 10 years","authors":"Pasquale Foggia, Gennaro Percannella, Mario Vento","year":"2014","venue":"IJPRAI","doi":null,"url":null,"internal_url":null},{"position":17,"raw":"[Fomin et al., 2007] Fedor V. Fomin, Pinar Heggernes, and Dieter Kratsch. Exact algorithms for graph homomor- phisms. Theory Comput. Syst., 41(2):381-393, 2007.","title":"Exact algorithms for graph homomorphisms","authors":"V Fedor, Pinar Fomin, Dieter Heggernes, Kratsch","year":"2007","venue":"Theory Comput. Syst","doi":null,"url":null,"internal_url":null},{"position":18,"raw":"[Garey and Johnson, 1979] M. R. Garey and David S. John- son. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.","title":"Computers and Intractability: A Guide to the Theory of NP-Completeness","authors":"M R Garey, David S Johnson","year":"1979","venue":null,"doi":null,"url":null,"internal_url":null},{"position":19,"raw":"[Gocht et al., 2020a] Stephan Gocht, Ross McBride, Ciaran McCreesh, Jakob Nordström, Patrick Prosser, and James Trimble. Certifying solvers for clique and maximum com- mon (connected) subgraph problems. In Principles and Practice of Constraint Programming -26th International Conference, CP 2020, 2020.","title":"Certifying solvers for clique and maximum common (connected) subgraph problems","authors":"Gocht","year":"2020","venue":"Principles and Practice of Constraint Programming -26th International Conference","doi":null,"url":null,"internal_url":null},{"position":20,"raw":"[Gocht et al., 2020b] Stephan Gocht, Ciaran McCreesh, and Jakob Nordström. Subgraph isomorphism meets cutting planes: Solving with certified solutions. In Proceedings of the Twenty-Ninth International Joint Conference on Artifi- cial Intelligence, IJCAI 2020, 2020.","title":"Subgraph isomorphism meets cutting planes: Solving with certified solutions","authors":"Gocht","year":"2020","venue":"Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI 2020","doi":null,"url":null,"internal_url":"/proceedings/2020/158"},{"position":21,"raw":"[Kotthoff et al., 2016] Lars Kotthoff, Ciaran McCreesh, and Christine Solnon. Portfolios of subgraph isomorphism al- gorithms. In Learning and Intelligent Optimization -10th International Conference, LION 10, 2016.","title":"Portfolios of subgraph isomorphism algorithms","authors":"Kotthoff","year":"2016","venue":"Learning and Intelligent Optimization -10th International Conference","doi":null,"url":null,"internal_url":null},{"position":22,"raw":"[McConnell et al., 2011] Ross M. McConnell, Kurt Mehlhorn, Stefan Näher, and Pascal Schweitzer. Cer- tifying algorithms. Comput. Sci. Rev., 5(2):119-161, 2011.","title":"Certifying algorithms","authors":"Ross M Mcconnell, Kurt Mehlhorn, Stefan Näher, Pascal Schweitzer","year":"2011","venue":"Comput. Sci. Rev","doi":null,"url":null,"internal_url":null},{"position":23,"raw":"[McCreesh and Prosser, 2014] Ciaran McCreesh and Patrick Prosser. Reducing the branching in a branch and bound algorithm for the maximum clique problem. In Princi- ples and Practice of Constraint Programming -20th In- ternational Conference, CP 2014, volume 8656 of LNCS. Springer, 2014.","title":"Reducing the branching in a branch and bound algorithm for the maximum clique problem","authors":"Prosser Mccreesh, Ciaran Mccreesh, Patrick Prosser","year":"2014","venue":"Principles and Practice of Constraint Programming -20th International Conference","doi":null,"url":null,"internal_url":null},{"position":24,"raw":"[McCreesh and Prosser, 2015] Ciaran McCreesh and Patrick Prosser. A parallel, backjumping subgraph isomorphism algorithm using supplemental graphs. In Principles and Practice of Constraint Programming -21st International Conference, CP 2015, Proceedings, 2015.","title":"A parallel, backjumping subgraph isomorphism algorithm using supplemental graphs","authors":"Ciaran Mccreesh, Patrick Prosser","year":"2015","venue":"Principles and Practice of Constraint Programming -21st International Conference","doi":null,"url":null,"internal_url":null},{"position":25,"raw":"[McCreesh et al., 2018] Ciaran McCreesh, Patrick Prosser, Christine Solnon, and James Trimble. When subgraph iso- morphism is really hard, and why this matters for graph databases. J. Artif. Intell. Res., 61:723-759, 2018.","title":"When subgraph isomorphism is really hard, and why this matters for graph databases","authors":"Ciaran Mccreesh, Patrick Prosser, Christine Solnon, James Trimble","year":"2018","venue":"J. Artif. Intell. Res","doi":null,"url":null,"internal_url":null},{"position":26,"raw":"[McCreesh et al., 2020] Ciaran McCreesh, Patrick Prosser, and James Trimble. The Glasgow subgraph solver: Using constraint programming to tackle hard subgraph isomor- phism problem variants. In Graph Transformation -13th International Conference, ICGT 2020, 2020.","title":"The Glasgow subgraph solver: Using constraint programming to tackle hard subgraph isomorphism problem variants","authors":"Ciaran Mccreesh, Patrick Prosser, James Trimble","year":"2020","venue":"Graph Transformation -13th International Conference, ICGT 2020","doi":null,"url":null,"internal_url":null},{"position":27,"raw":"[Prosser, 2012] Patrick Prosser. Exact algorithms for max- imum clique: A computational study. Algorithms, 5(4):545-587, 2012.","title":"Exact algorithms for maximum clique: A computational study","authors":"Patrick Prosser","year":"2012","venue":"Algorithms","doi":null,"url":null,"internal_url":null},{"position":28,"raw":"[Rzazewski, 2014] Pawel Rzazewski. Exact algorithm for graph homomorphism and locally injective graph homo- morphism. Inf. Process. Lett., 114(7):387-391, 2014.","title":"Exact algorithm for graph homomorphism and locally injective graph homomorphism","authors":"Pawel Rzazewski","year":"2014","venue":"Inf. Process. Lett","doi":null,"url":null,"internal_url":null},{"position":29,"raw":"[San Segundo et al., 2013] Pablo San Segundo, Fernando Matía, Diego Rodríguez-Losada, and Miguel Hernando. An improved bit parallel exact maximum clique algorithm. Optim. Lett., 7(3):467-479, 2013.","title":"Pablo San Segundo, Fernando Matía, Diego Rodríguez-Losada, and Miguel Hernando. An improved bit parallel exact maximum clique algorithm","authors":"San Segundo","year":"2013","venue":"Optim. Lett","doi":null,"url":null,"internal_url":null},{"position":30,"raw":"[Solnon, 2010] Christine Solnon. Alldifferent-based filtering for subgraph isomorphism. Artif. Intell., 174(12-13):850- 864, 2010.","title":"Alldifferent-based filtering for subgraph isomorphism","authors":"Christine Solnon","year":"2010","venue":"Artif. Intell","doi":null,"url":null,"internal_url":null},{"position":31,"raw":"[Solnon, 2019] Christine Solnon. Experimental evaluation of subgraph isomorphism solvers. In Graph-Based Repre- sentations in Pattern Recognition -12th IAPR-TC-15 In- ternational Workshop, GbRPR 2019, 2019.","title":"Experimental evaluation of subgraph isomorphism solvers","authors":"Christine Solnon","year":"2019","venue":"Graph-Based Representations in Pattern Recognition -12th IAPR-TC-15 International Workshop","doi":null,"url":null,"internal_url":null},{"position":32,"raw":"[Tomita et al., 2010] Etsuji Tomita, Yoichi Sutani, Takanori Higashi, Shinya Takahashi, and Mitsuo Wakatsuki. A sim- ple and faster branch-and-bound algorithm for finding a maximum clique. In WALCOM: Algorithms and Compu- tation, 4th International Workshop, WALCOM 2010, vol- ume 5942 of LNCS. Springer, 2010.","title":"A simple and faster branch-and-bound algorithm for finding a maximum clique","authors":"Tomita","year":"2010","venue":"WALCOM: Algorithms and Computation, 4th International Workshop","doi":null,"url":null,"internal_url":null},{"position":33,"raw":"[Willett, 1999] Peter Willett. Matching of chemical and bi- ological structures using subgraph and maximal common subgraph isomorphism algorithms. In Donald G. Truhlar, W. Jeffrey Howe, Anthony J. Hopfinger, Jeff Blaney, and Richard A. Dammkoehler, editors, Rational Drug Design, pages 11-38. Springer New York, New York, NY, 1999.","title":"Matching of chemical and biological structures using subgraph and maximal common subgraph isomorphism algorithms","authors":"Peter Willett","year":"1999","venue":"Rational Drug Design","doi":null,"url":null,"internal_url":null},{"position":34,"raw":"[Zampelli et al., 2010] Stéphane Zampelli, Yves Deville, and Christine Solnon. Solving subgraph isomorphism problems with constraint programming. Constraints, 15(3):327-353, 2010.","title":"Solving subgraph isomorphism problems with constraint programming","authors":"Stéphane Zampelli, Yves Deville, Christine Solnon","year":"2010","venue":"Constraints","doi":null,"url":null,"internal_url":null}],"license_note":"Copyright International Joint Conferences on Artificial Intelligence."}