Node Embedding and Cosine Similarity for Efficient Maximum Common Subgraph Discovery
Source abstract
Abstract
Finding the maximum common induced subgraph is a fundamental problem in computer science. Proven to be NP-hard in the 1970s, it has, nowadays, countless applications that still motivate the search for efficient algorithms and practical heuristics. In this work, we extend a state-of-the-art branch-and-bound exact algorithm with new techniques developed in the deep-learning domain, namely graph neural networks and node embeddings, effectively transforming an efficient yet uninformed depth-first search into an effective best-first search. The change enables the algorithm to find suitable solutions within a limited budget, pushing forward the method’s time efficiency and applicability on larger graphs. We evaluate the usage of the L2 norm of the node embeddings and the Cumulative Cosine Similarity to classify the nodes of the graphs. Our experimental analysis on standard graphs compares our heuristic against the original algorithm and a recently tweaked version that exploits reinforcement learning. The results demonstrate the effectiveness and scalability of the proposed approach, compared with the state-of-the-art algorithms. In particular, this approach results in improved results on over 90% of the larger graphs; this would be more challenging in a constrained industrial scenario.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Graph Neural Networks · Graph Theory and Algorithms · Complex Network Analysis Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Dipartimento di Automatica e Informatica, Politecnico di Torino, Corso Duca degli Abruzzi 24, 10129 Torino, Italy
References (34)
Show source-provided references
1. Gross, J.L., Yellen, J., and Anderson, M. (2018). Graph Theory and Its Applications, Chapman & Hall/CRC. [3rd ed.].10.1201/9780429425134 ↗
2. FMCS: A Novel Algorithm for the Multiple MCS Problem10.1186/1758-2946-5-S1-O6 ↗
3. The Small World Problem
4. The Anatomy of a Large-Scale Hypertextual Web Search Engine10.1016/S0169-7552(98)00110-X ↗
5. Deriving Common Malware Behavior through Graph Clustering10.1016/j.cose.2013.09.006 ↗
6. Zimmermann, T., and Nagappan, N. (2007, January 5–9). Predicting Subsystem Failures using Dependency Graph Complexities. Proceedings of the 18th IEEE International Symposium on Software Reliability (ISSRE ’07), Trollhattan, Sweden.10.1109/ISSRE.2007.19 ↗
7. Angione, F., Bernardi, P., Calabrese, A., Cardone, L., Niccoletti, A., Piumatti, D., Quer, S., Appello, D., Tancorre, V., and Ugioli, R. (2022, January 23–30). An Innovative Strategy to Quickly Grade Functional Test Programs. Proceedings of the IEEE International Test Conference (ITC), Anaheim, CA, USA.10.1109/ITC50671.2022.00044 ↗
8. Algorithm 457: Finding all Cliques of an Undirected Graph10.1145/362342.362367 ↗
9. Subgraph Isomorphism, Matching Relational Structures and Maximal Cliques10.1016/0020-0190(76)90049-1 ↗
10. A Note on the Derivation of Maximal Common Subgraphs of Two Directed or Undirected Graphs10.1007/BF02575586 ↗
11. The Maximum Common Edge Subgraph Problem: A Polyhedral Investigation10.1016/j.dam.2012.01.026 ↗
12. Le Thi, H.A., Bouvry, P., and Pham Dinh, T. (2008, January 8–10). Finding Maximum Common Connected Subgraphs Using Clique Detection or Constraint Satisfaction Algorithms. Proceedings of the Modelling, Computation and Optimization in Information Systems and Management Sciences, Metz, France.
13. Rueher, M. (2016, January 5–9). Clique and Constraint Models for Maximum Common (Connected) Subgraph Problems. Proceedings of the Principles and Practice of Constraint Programming, Toulouse, France.
14. Yu, X., Liu, Z., Fang, Y., and Zhang, X. (2023, January 7–14). Learning to Count Isomorphisms with Graph Neural Networks. Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence and Thirty-Fifth Conference on Innovative Applications of Artificial Intelligence and Thirteenth Symposium on Educational Advances in Artificial Intelligence, AAAI’23/IAAI’23/EAAI’23, Washington, DC, USA.
15. Wang, Z., Zhang, Z., Ma, T., Chawla, N.V., Zhang, C., and Ye, Y. (2025). Beyond Message Passing: Neural Graph Pattern Machine. arXiv.
16. Hashemi, M., Gong, S., Ni, J., Fan, W., Prakash, B.A., and Jin, W. (2024, January 3–9). A Comprehensive Survey on Graph Reduction: Sparsification, Coarsening, and Condensation. Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI ’24, Jeju, Republic of Korea.10.24963/ijcai.2024/891 ↗
17. Liu, Y., Bo, D., and Shi, C. (2024, January 21–27). Graph Condensation via Eigenbasis Matching. Proceedings of the 41st International Conference on Machine Learning, Vienna, Austria.
18. Guidobene, D., and Cera, G. (2024). Improved Dynamics for the Maximum Common Subgraph Problem. arXiv.
19. Fast Maximum Common Subgraph Search: A Redundancy-Reduced Backtracking Approach10.1145/3725414 ↗
20. Roy, I., Chakrabarti, S., and De, A. (December, January 28). Maximum Common Subgraph Guided Graph Retrieval: Late and Early Interaction Networks. Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS ’22, Red Hook, NY, USA.
21. Lu, K., Zhang, Y., Xu, K., Gao, Y., and Wilson, R.C. (2014, January 24–28). Approximate Maximum Common Sub-graph Isomorphism Based on Discrete-Time Quantum Walk. Proceedings of the 2014 22nd International Conference on Pattern Recognition, Stockholm, Sweden.10.1109/ICPR.2014.252 ↗
22. Dilkas, P. (2018). Algorithm Selection for Maximum Common Subgraph. [Bachelor’s Thesis, University of Glasgow].
23. McCreesh, C., Prosser, P., and Trimble, J. (2017, January 19–25). A Partitioning Algorithm for Maximum Common Subgraph Problems. Proceedings of the 26th International Joint Conference on Artificial Intelligence, IJCAI-17, Melbourne, Australia.10.24963/ijcai.2017/99 ↗
24. Trimble, J. (2023). Partitioning Algorithms for Induced Subgraph Problems. [Ph.D. Thesis, University of Glasgow].
25. Liu, Y., Li, C.M., Jiang, H., and He, K. (2020, January 7–12). A Learning Based Branch and Bound for Maximum Common Subgraph Related Problems. Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA.
26. Zhou, J., He, K., Zheng, J., Li, C.M., and Liu, Y. (2022, January 23–29). A Strengthened Branch and Bound Algorithm for the Maximum Common (Connected) Subgraph Problem. Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, Vienna, Austria.10.24963/ijcai.2022/265 ↗
27. Liu, Y., Zhao, J., Li, C.M., Jiang, H., and He, K. (2023, January 7–14). Hybrid Learning with New Value Function for the Maximum Common Induced Subgraph Problem. Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence, Washington, DC, USA.
28. Bai, Y., Xu, D., Gu, K., Wu, X., Marinovic, A., Ro, C., Sun, Y., and Wang, W. (2020). Neural Maximum Common Subgraph Detection with Guided Subgraph Extraction. OpenReview, preprint.
29. GLSearch: Maximum Common Subgraph Detection via Learning to Search
30. Quer, S., Marcelli, A., and Squillero, G. (2020). The Maximum Common Subgraph Problem: A Parallel and Multi-Engine Approach. Computation, 8.10.3390/computation8020048 ↗
31. Ying, R., Lou, Z., You, J., Wen, C., Canedo, A., and Leskovec, J. (2020). Neural Subgraph Matching. arXiv.
32. Grover, A., and Leskovec, J. (2016, January 13–17). node2vec: Scalable Feature Learning for Networks. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, New York, NY, USA.10.1145/2939672.2939754 ↗
33. Bai, Y., Xu, D., Sun, Y., and Wang, W. Personal communication.
34. Sun, H., Lv, Z., Li, J., Xu, Z., Sheng, Z., and Ma, Z. (2022, January 24–26). Prediction of Cancellation Probability of Online Car-Hailing Orders Based on Multi-source Heterogeneous Data Fusion. Proceedings of the Wireless Algorithms, Systems, and Applications: 17th International Conference, WASA 2022, Dalian, China. Proceedings, Part II.10.1007/978-3-031-19214-2_14 ↗