DSCM: A Dominance-Based Subgraph Counting Method
Abstract
1. Introduction
- We propose a dominance-based subgraph counting model, which consists of the vertex dominance embedding network and the subgraph counting prediction network.
- To accurately capture the matching relationships between vertices in the data graph and the query graph, we design a dedicated vertex dominance embedding network capable of precisely modeling these relationships. This network is trained independently to ensure high-quality feature extraction.
- To enhance the accuracy of subgraph count prediction, we generate multiple substructures from the vertices of the query graph. By modeling the matching relationships between these substructures and the data graph, referred to as substructure dominance relationships, our method produces more reliable subgraph count results.
- We conduct extensive experiments across a wide range of real-world datasets, and the results demonstrate that our method significantly outperforms existing state-of-the-art approaches.
2. Preliminaries
2.1. Problem Statement
- , we have where .
- .
2.2. Deep Learning-Based Subgraph Counting Methods
2.3. Graph Neural Network
3. Method
3.1. Model Overview
3.2. Vertex Dominance Embedding Network
3.3. Subgraph Counting Prediction Network
3.4. Model Training
4. Experiments
4.1. Experimental Setup
4.2. Experimental Analysis
4.2.1. Effectiveness of Subgraph Counting
4.2.2. Ablation Experiments
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Hong, L.; Zou, L.; Lian, X.; Philip, S.Y. Subgraph matching with set similarity in a large graph database. IEEE Trans. Knowl. Data Eng. 2015, 27, 2507–2521. [Google Scholar] [CrossRef]
- Llados, J.; Marti, E.; Villanueva, J.J. Symbol recognition by error-tolerant subgraph matching between region adjacency graphs. IEEE Trans. Pattern Anal. Mach. Intell. 2001, 23, 1137–1143. [Google Scholar] [CrossRef]
- Conte, D.; Foggia, P.; Sansone, C.; Vento, M. Thirty years of graph matching in pattern recognition. Int. J. Pattern Recognit. Artif. Intell. 2004, 18, 265–298. [Google Scholar] [CrossRef]
- Vento, M.; Foggia, P. Graph matching techniques for computer vision. In Image Processing: Concepts, Methodologies, Tools, and Applications; IGI Global: Hershey, PA, USA, 2013; pp. 381–421. [Google Scholar]
- Nastase, V.; Mihalcea, R.; Radev, D.R. A survey of graphs in natural language processing. Nat. Lang. Eng. 2015, 21, 665–698. [Google Scholar] [CrossRef]
- Coley, C.W.; Rogers, L.; Green, W.H.; Jensen, K.F. Computer-assisted retrosynthesis based on molecular similarity. ACS Cent. Sci. 2017, 3, 1237–1245. [Google Scholar] [CrossRef]
- Zhang, S.; Li, S.; Yang, J. GADDI: Distance index based subgraph matching in biological networks. In Proceedings of the 12th International Conference on Extending Database Technology, Saint-Petersburg, Russia, 24–26 March 2009; Association for Computing Machinery: New York, NY, USA, 2009; pp. 192–203. [Google Scholar]
- Carletti, V.; Foggia, P.; Vento, M. Performance comparison of five exact graph matching algorithms on biological databases. In International Conference on Image Analysis and Processing; Springer: Berlin/Heidelberg, Germany, 2013; pp. 409–417. [Google Scholar]
- Ribeiro, P.; Paredes, P.; Silva, M.E.P.; Aparicio, D.; Silva, F. A survey on subgraph counting: Concepts, algorithms, and applications to network motifs and graphlets. ACM Comput. Surv. 2021, 54, 28. [Google Scholar] [CrossRef]
- Wernicke, S. A faster algorithm for detecting network motifs. In Proceedings of the International Workshop on Algorithms in Bioinformatics (WABI’05), Mallorca, Spain, 3–6 October 2005; Springer: Berlin/Heidelberg, Germany, 2005; pp. 165–177. [Google Scholar]
- Wernicke, S.; Rasche, F. FANMOD: A tool for fast network motif detection. Bioinformatics 2006, 22, 1152–1153. [Google Scholar] [CrossRef]
- Itzhack, R.; Mogilevski, Y.; Louzoun, Y. An optimal algorithm for counting network motifs. Phys. A Stat. Mech. Appl. 2007, 381, 482–490. [Google Scholar] [CrossRef]
- Grochow, J.A.; Kellis, M. Network motif discovery using subgraph enumeration and symmetry-breaking. In Research in Computational Molecular Biology; Springer: Berlin/Heidelberg, Germany, 2007; pp. 92–106. [Google Scholar]
- Kashani, Z.R.M.; Ahrabian, H.; Elahi, E.; Nowzari-Dalini, A.; Ansari, E.S.; Asadi, S.; Mohammadi, S.; Schreiber, F.; Masoudi-Nejad, A. Kavosh: A new algorithm for finding network motifs. BMC Bioinform. 2009, 10, 318. [Google Scholar] [CrossRef]
- Demeyer, S.; Michoel, T.; Fostier, J.; Audenaert, P.; Pickavet, M.; Demeester, P. The index-based subgraph matching algorithm (ISMA): Fast subgraph enumeration in large networks. PLoS ONE 2013, 8, e61183. [Google Scholar] [CrossRef] [PubMed]
- Houbraken, M.; Demeyer, S.; Michoel, T.; Audenaert, P.; Colle, D.; Pickavet, M. ISMAGS: Exploiting symmetry for faster subgraph enumeration. PLoS ONE 2014, 9, e97896. [Google Scholar] [CrossRef]
- Marcus, D.; Shavitt, Y. Efficient counting of network motifs. In Proceedings of the IEEE 30th International Conference on Distributed Computing Systems Workshops, Genoa, Italy, 21–25 June 2010; IEEE: Washington, DC, USA, 2010; pp. 92–98. [Google Scholar]
- Marcus, D.; Shavitt, Y. Rage: A rapid graphlet enumerator for large networks. Comput. Netw. 2012, 56, 810–819. [Google Scholar] [CrossRef]
- Hočevar, T.; Demšar, J. A combinatorial approach to graphlet counting. Bioinformatics 2014, 30, 559–565. [Google Scholar] [CrossRef]
- Hočevar, T.; Demšar, J. Combinatorial algorithm for counting small induced graphs and orbits. PLoS ONE 2017, 12, e0171428. [Google Scholar] [CrossRef] [PubMed]
- Meira, L.A.A.; Maximo, V.R.; Fazenda, A.L.; Conceicao, A.F. Accelerated motif detection using combinatorial techniques. In Proceedings of the 2012 Eighth International Conference on Signal Image Technology and Internet Based Systems, Sorrento, Italy, 25–29 November 2012; IEEE: Washington, DC, USA, 2012; pp. 744–753. [Google Scholar]
- Meira, L.A.A.; Máximo, V.R.; Fazenda, A.L.; Da Conceição, A.F. Acc-Motif: Accelerated network motif detection. IEEE/ACM Trans. Comput. Biol. Bioinform. 2014, 11, 853–862. [Google Scholar] [CrossRef]
- Ortmann, M.; Brandes, U. Quad census computation: Simple, efficient, and orbit-aware. In Advances in Network Science. NetSci-X 2016; Springer: Cham, Switzerland, 2016; pp. 1–13. [Google Scholar]
- Ortmann, M.; Brandes, U. Efficient orbit-aware triad and quad census in directed and undirected graphs. Appl. Netw. Sci. 2017, 2, 13. [Google Scholar] [CrossRef]
- Melckenbeeck, I.; Audenaert, P.; Colle, D.; Pickavet, M. Efficiently counting all orbits of graphlets using autogenerated equations. Bioinformatics 2017, 34, 1372–1380. [Google Scholar] [CrossRef] [PubMed]
- Melckenbeeck, I.; Audenaert, P.; Van Parys, T.; Van De Peer, Y.; Colle, D.; Pickavet, M. Optimising orbit counting by equation selection. BMC Bioinform. 2019, 20, 27. [Google Scholar] [CrossRef] [PubMed]
- Ribeiro, P.; Silva, F. Efficient subgraph frequency estimation with g-tries. In Proceedings of the WABI 2010, Liverpool, UK, 6–8 September 2010; Springer: Berlin/Heidelberg, Germany, 2010; pp. 238–249. [Google Scholar]
- Paredes, P.; Ribeiro, P. Rand-FaSE: Fast approximate subgraph census. Soc. Netw. Anal. Min. 2015, 5, 17. [Google Scholar] [CrossRef]
- Pržulj, N.; Corneil, D.G.; Jurisica, I. Efficient estimation of graphlet frequency distributions. Bioinformatics 2006, 22, 974–980. [Google Scholar] [CrossRef]
- Rahman, M.; Bhuiyan, M.A.; Hasan, M.A. Graft: An efficient graphlet counting method. IEEE Trans. Knowl. Data Eng. 2014, 26, 2466–2478. [Google Scholar] [CrossRef]
- Wang, J.; Huang, Y.; Wu, F.-X.; Pan, Y. Symmetry compression method. IEEE/ACM Trans. Comput. Biol. Bioinform. 2012, 9, 1776–1789. [Google Scholar] [CrossRef] [PubMed]
- Elenberg, E.R.; Shanmugam, K.; Borokhovich, M.; Dimakis, A.G. Beyond triangles: Distributed estimation of 3-profiles. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Sydney, Australia, 10–13 August 2015; Association for Computing Machinery: New York, NY, USA, 2015; pp. 229–238. [Google Scholar]
- Elenberg, E.R.; Shanmugam, K.; Borokhovich, M.; Dimakis, A.G. Distributed estimation of graph 4-profiles. In Proceedings of the 25th International Conference on World Wide Web, Montreal, QC, Canada, 11–15 April 2016; International World Wide Web Conferences Steering Committee: Geneva, Switzerland, 2016; pp. 483–493. [Google Scholar]
- Jha, M.; Seshadhri, C.; Pinar, A. Path sampling: Fast estimation of 4-vertex subgraphs. In Proceedings of the 24th International Conference on World Wide Web, Florence, Italy, 18–22 May 2015; pp. 495–505. [Google Scholar]
- Seshadhri, C.; Pinar, A.; Kolda, T.G. Triadic measures on graphs: Wedge sampling. In Proceedings of the 2013 SIAM International Conference on Data Mining, Austin, TX, USA, 2–4 May 2013; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2013; pp. 10–18. [Google Scholar]
- Bhuiyan, M.A.; Rahman, M.; Hasan, M.A. Guise: Uniform sampling of graphlets. In Proceedings of the 2012 IEEE 12th International Conference on Data Mining, Brussels, Belgium, 10–13 December 2012; IEEE: Washington, DC, USA, 2012; pp. 91–100. [Google Scholar]
- Wang, P.; Lui, J.; Ribeiro, B.; Towsley, D.; Zhao, J.; Guan, X. Efficiently estimating motif statistics of large networks. ACM Trans. Knowl. Discov. Data 2014, 9, 8. [Google Scholar] [CrossRef]
- Saha, T.K.; Hasan, M.A. Finding network motifs using MCMC sampling. In CompleNet; Springer: Cham, Switzerland, 2015; pp. 13–24. [Google Scholar]
- Yang, C.; Lyu, M.; Li, Y.; Zhao, Q.; Xu, Y. SSRW: Random-walk-based graphlet estimation. In Proceedings of the 23rd International Conference on Database Systems for Advanced Applications, Gold Coast, Australia, 21–24 May 2018; pp. 272–288. [Google Scholar]
- Bressan, M.; Chierichetti, F.; Kumar, R.; Leucci, S.; Panconesi, A. Motif counting beyond five nodes. ACM Trans. Knowl. Discov. Data 2018, 12, 48. [Google Scholar] [CrossRef]
- Liu, X.; Pan, H.; He, M.; Song, Y.; Jiang, X.; Shang, L. Neural Subgraph Isomorphism Counting. In Proceedings of the 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, San Diego, CA, USA, 23–27 October 2020; Association for Computing Machinery: New York, NY, USA, 2020; pp. 1959–1969. [Google Scholar]
- Zhao, K.; Yu, J.X.; Zhang, H.; Li, Q.; Rong, Y. A Learned Sketch for Subgraph Counting. In Proceedings of the 48th ACM SIGMOD International Conference on Management of Data, Boston, MA, USA, 20–25 June 2021; Association for Computing Machinery: New York, NY, USA, 2021; pp. 2142–2155. [Google Scholar]
- Wang, H.; Hu, R.; Zhang, Y.; Zhang, X.; Xu, J. Neural Subgraph Counting with Wasserstein Estimator. In Proceedings of the 49th ACM SIGMOD International Conference on Management of Data, Philadelphia, PA, USA, 12–17 June 2022; Association for Computing Machinery: New York, NY, USA, 2022; pp. 160–175. [Google Scholar]
- Yu, X.; Liu, Z.; Fang, Y.; Zhang, X. Count-GNN: Graph Neural Networks for Subgraph Isomorphism Counting. In Proceedings of the 37th AAAI Conference on Artificial Intelligence, Seattle, WA, USA, 7–14 February 2021. [Google Scholar]
- Zhao, K.; He, Z.; Yu, J.X.; Rong, Y. Learning with small data: Subgraph counting queries. Data Sci. Eng. 2023, 8, 292–305. [Google Scholar] [CrossRef]
- Lou, Z.; You, J.; Wen, C.; Canedo, A.; Jure Leskovec, J. Neural subgraph matching. arXiv 2020, arXiv:2007.03092. [Google Scholar] [CrossRef]











| Datasets | |V| | |E| | |E| |
|---|---|---|---|
| yeast | 3112 | 12,519 | 71 |
| human | 4674 | 86,282 | 44 |
| hprd | 9460 | 34,998 | 307 |
| dblp | 317,080 | 1,049,866 | 15 |
| Datasets | Number of Query Graphs | Size of Query Graphs | Range of Subgraph Match Counts |
|---|---|---|---|
| yeast | 800 | {4, 8, 16, 24} | [100, 1011] |
| human | 800 | {4, 8, 16, 24} | [100, 1011] |
| hprd | 800 | {4, 8, 16, 24} | [100, 104] |
| dblp | 800 | {4, 8, 16, 24} | [103, 108] |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yu, H.; Li, J.; Li, J.; Li, C. DSCM: A Dominance-Based Subgraph Counting Method. Electronics 2026, 15, 192. https://doi.org/10.3390/electronics15010192
Yu H, Li J, Li J, Li C. DSCM: A Dominance-Based Subgraph Counting Method. Electronics. 2026; 15(1):192. https://doi.org/10.3390/electronics15010192
Chicago/Turabian StyleYu, Heming, Ji Li, Jiaquan Li, and Chuanwen Li. 2026. "DSCM: A Dominance-Based Subgraph Counting Method" Electronics 15, no. 1: 192. https://doi.org/10.3390/electronics15010192
APA StyleYu, H., Li, J., Li, J., & Li, C. (2026). DSCM: A Dominance-Based Subgraph Counting Method. Electronics, 15(1), 192. https://doi.org/10.3390/electronics15010192
